Skip to content

Add publishing workflow #1

Add publishing workflow

Add publishing workflow #1

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / Publish

Invalid workflow file

The workflow is not valid. .github/workflows/publish.yml (Line: 18, Col: 9): Unexpected symbol: '"-round-based"'. Located at position 92 within expression: github.ref_type == 'tag' && startsWith(github.ref_name, 'v') && endsWith(github.ref_name, "-round-based") .github/workflows/publish.yml (Line: 31, Col: 9): Unexpected symbol: '"-derive"'. Located at position 92 within expression: github.ref_type == 'tag' && startsWith(github.ref_name, 'v') && endsWith(github.ref_name, "-derive")
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 }}