Skip to content

Commit

Permalink
Updated publish workflow
Browse files Browse the repository at this point in the history
Use cargo workspaces to do the work.
  • Loading branch information
SfietKonstantin committed May 10, 2021
1 parent 6aa94cb commit 2b9e35e
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true

- name: Publish pretend-codegen
run: cd pretend-codegen && cargo publish --token "${CARGO_TOKEN}"
env:
CARGO_TOKEN: ${{ secrets.CARGO_TOKEN }}
- name: Install cargo workspace
run: cargo install cargo-workspaces

- name: Publish pretend
run: cd pretend && cargo publish --token "${CARGO_TOKEN}"
env:
CARGO_TOKEN: ${{ secrets.CARGO_TOKEN }}
- name: Cargo login
run: cargo login ${{ secrets.CARGO_TOKEN }}

- name: Publish pretend-reqwest
run: cd pretend-reqwest && cargo publish --token "${CARGO_TOKEN}"
env:
CARGO_TOKEN: ${{ secrets.CARGO_TOKEN }}

- name: Publish pretend-isahc
run: cd pretend-isahc && cargo publish --token "${CARGO_TOKEN}"
env:
CARGO_TOKEN: ${{ secrets.CARGO_TOKEN }}
- name: Publish
run: cargo workspaces publish --from-git --skip-published

0 comments on commit 2b9e35e

Please sign in to comment.