Skip to content

Commit

Permalink
Fix release actions (yewstack#2986)
Browse files Browse the repository at this point in the history
  • Loading branch information
voidpumpkin authored and WorldSEnder committed Mar 18, 2023
1 parent 2a25243 commit fb4519b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 43 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-yew-agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
uses: baptiste0928/cargo-install@v1
with:
crate: cargo-release
version: 0.23.1
version: =0.23.1

- name: Cargo login
run: cargo login ${{ secrets.CRATES_IO_TOKEN }}
Expand Down
24 changes: 4 additions & 20 deletions .github/workflows/publish-yew-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,29 +41,13 @@ jobs:
uses: baptiste0928/cargo-install@v1
with:
crate: cargo-release
version: 0.18.5
version: =0.23.1

- name: Build changelog generator
run: cargo build --release -p changelog
working-directory: tools

- name: Generate changelog
uses: mathiasvr/command-output@v1
id: changelog
with:
run: ./target/release/changelog yew ${{ github.event.inputs.level }} -t ${{ secrets.GITHUB_TOKEN }}

- name: Commit changelog
run: |
git add CHANGELOG.md
git commit -m "update CHANGELOG.md for yew release"
git push origin master
- name: Cargo login
run: cargo login ${{ secrets.CRATES_IO_TOKEN }}

- name: Release yew
run: cargo release ${PUBLISH_LEVEL} --token ${CRATES_TOKEN} --execute --no-confirm --package yew
env:
PUBLISH_LEVEL: ${{ github.event.inputs.level }}
CRATES_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
run: cargo release ${PUBLISH_LEVEL} --execute --no-confirm --package yew

- name: Get tag
id: gettag
Expand Down
24 changes: 4 additions & 20 deletions .github/workflows/publish-yew-router-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,29 +40,13 @@ jobs:
uses: baptiste0928/cargo-install@v1
with:
crate: cargo-release
version: 0.18.5
version: =0.23.1

- name: Build changelog generator
run: cargo build --release -p changelog
working-directory: tools

- name: Generate changelog
uses: mathiasvr/command-output@v1
id: changelog
with:
run: ./target/release/changelog yew-router ${{ github.event.inputs.level }} -t ${{ secrets.GITHUB_TOKEN }}

- name: Commit changelog
run: |
git add CHANGELOG.md
git commit -m "update CHANGELOG.md for yew-router release"
git push origin master
- name: Cargo login
run: cargo login ${{ secrets.CRATES_IO_TOKEN }}

- name: Release yew-router
run: cargo release ${PUBLISH_LEVEL} --token ${CRATES_TOKEN} --execute --no-confirm --package yew-router
env:
PUBLISH_LEVEL: ${{ github.event.inputs.level }}
CRATES_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
run: cargo release ${PUBLISH_LEVEL} --execute --no-confirm --package yew-router

- name: Get tag
id: gettag
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-yew-router.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
uses: baptiste0928/cargo-install@v1
with:
crate: cargo-release
version: 0.23.1
version: =0.23.1

- name: Cargo login
run: cargo login ${{ secrets.CRATES_IO_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-yew.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
uses: baptiste0928/cargo-install@v1
with:
crate: cargo-release
version: 0.23.1
version: =0.23.1

- name: Cargo login
run: cargo login ${{ secrets.CRATES_IO_TOKEN }}
Expand Down

0 comments on commit fb4519b

Please sign in to comment.