diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..4680403 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,29 @@ +name: Publish Rust crate + +on: + push: + tags: + - '*' + +concurrency: + group: "publish" + cancel-in-progress: false + +jobs: + publish: + name: Publish crate + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + submodules: true + - uses: ./.github/actions/setup-rust + - name: install dependencies + run: | + sudo apt update + sudo apt install -y fuse3 libfuse3-dev + - name: Publish pnafs crate + run: cargo publish -p pnafs + working-directory: . + env: + CARGO_REGISTRY_TOKEN: "${{ secrets.CRATES_IO_API_KEY }}"