mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
Fix release actions (#2986)
This commit is contained in:
parent
2fcb2a32bd
commit
5c943a7b1b
2
.github/workflows/publish-yew-agent.yml
vendored
2
.github/workflows/publish-yew-agent.yml
vendored
@ -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 }}
|
||||
|
||||
24
.github/workflows/publish-yew-only.yml
vendored
24
.github/workflows/publish-yew-only.yml
vendored
@ -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
|
||||
|
||||
24
.github/workflows/publish-yew-router-only.yml
vendored
24
.github/workflows/publish-yew-router-only.yml
vendored
@ -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
|
||||
|
||||
2
.github/workflows/publish-yew-router.yml
vendored
2
.github/workflows/publish-yew-router.yml
vendored
@ -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 }}
|
||||
|
||||
2
.github/workflows/publish-yew.yml
vendored
2
.github/workflows/publish-yew.yml
vendored
@ -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 }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user