diff --git a/.github/workflows/publish-crates.yaml b/.github/workflows/publish-crates.yaml new file mode 100644 index 0000000..f447a02 --- /dev/null +++ b/.github/workflows/publish-crates.yaml @@ -0,0 +1,24 @@ +name: Publish + +on: + push: + branches: ["main"] + +jobs: + publish: + name: Publish + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v4 + + - name: Update Rust + run: rustup update stable + + - run: cargo publish --token ${CARGO_REGISTRY_TOKEN} --manifest-path base/Cargo.toml + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + + - run: cargo publish --token ${CARGO_REGISTRY_TOKEN} --manifest-path xlsx/Cargo.toml + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}