Skip to content

Commit

Permalink
Use an action for publish crate
Browse files Browse the repository at this point in the history
  • Loading branch information
iesahin committed Aug 4, 2024
1 parent 4b5d6a2 commit ac0be74
Showing 1 changed file with 3 additions and 25 deletions.
28 changes: 3 additions & 25 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,10 @@ jobs:
# Don't publish alpha releases
# if: startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, '-')
runs-on: ubuntu-latest
strategy:
matrix:
package:
[
xvc-logging,
xvc-test-helper,
xvc-walker,
xvc-ecs,
xvc-config,
xvc-core,
xvc-storage,
xvc-file,
xvc-pipelines,
xvc,
]

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Rust
uses: actions-rs/toolchain@v1
- name: publish crates workspace
uses: jio-gl/publish-crates-workspace@v4
with:
toolchain: stable

- name: Publish to crates.io
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: cargo publish -p ${{ matrix.package }}
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 comments on commit ac0be74

Please sign in to comment.