Skip to content

Commit

Permalink
Try multi-component publish.
Browse files Browse the repository at this point in the history
  • Loading branch information
gudaoxuri committed Aug 16, 2022
1 parent 5c76e1e commit ea42c77
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,26 +93,26 @@ jobs:
working-directory: tardis-macros
run: cargo publish

publish-tardis:
if: startsWith(github.ref, 'refs/tags/')
needs: [check, publish-macros]
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3

- name: Init rust envrionment
uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: Cargo login
run: cargo login ${{ secrets.CRATES_TOKEN }}

- name: Cargo package tardis
working-directory: tardis
run: cargo package

- name: Cargo publish tardis
working-directory: tardis
run: cargo publish
publish-tardis:
if: startsWith(github.ref, 'refs/tags/')
needs: [check, publish-macros]
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3

- name: Init rust envrionment
uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: Cargo login
run: cargo login ${{ secrets.CRATES_TOKEN }}

- name: Cargo package tardis
working-directory: tardis
run: cargo package

- name: Cargo publish tardis
working-directory: tardis
run: cargo publish

0 comments on commit ea42c77

Please sign in to comment.