From 5c520e3d642a0729a4ebcca93ecc6148bcd98a4c Mon Sep 17 00:00:00 2001 From: Markus <28785953+MarkusJx@users.noreply.github.com> Date: Fri, 15 Sep 2023 17:26:04 +0200 Subject: [PATCH] ci: create publish.yml --- .github/workflows/publish.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..ccf16d3 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,32 @@ +name: Publish + +on: + workflow_dispatch: + inputs: + dry-run: + description: 'Dry run' + type: boolean + required: false + default: 'false' + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Build + run: cargo build + - name: Run tests + run: cargo test + - name: publish crates + uses: katyo/publish-crates@v2 + with: + dry-run: ${{ github.event.inputs.dry-run == 'true' }} + registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} + path: ./crates/app-state +