Add publishing workflow #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
workflow_dispatch: | ||
name: Publish | ||
env: | ||
CARGO_TERM_COLOR: always | ||
CARGO_NET_GIT_FETCH_WITH_CLI: true | ||
jobs: | ||
publish-round-based: | ||
name: Publish round-based | ||
environment: crates.io | ||
runs-on: ubuntu-latest | ||
if: >- | ||
Check failure on line 18 in .github/workflows/publish.yml GitHub Actions / PublishInvalid workflow file
|
||
github.ref_type == 'tag' | ||
&& startsWith(github.ref_name, 'v') | ||
&& endsWith(github.ref_name, "-round-based") | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: cargo publish -p round-based --token ${CRATES_TOKEN} | ||
env: | ||
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }} | ||
publish-derive: | ||
name: Publish round-based-derive | ||
environment: crates.io | ||
runs-on: ubuntu-latest | ||
if: >- | ||
github.ref_type == 'tag' | ||
&& startsWith(github.ref_name, 'v') | ||
&& endsWith(github.ref_name, "-derive") | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: cargo publish -p round-based-derive --token ${CRATES_TOKEN} | ||
env: | ||
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }} |