Fix release actions (#2986)

This commit is contained in:
Julius Lungys 2022-11-28 21:08:49 +02:00 committed by GitHub
parent 2fcb2a32bd
commit 5c943a7b1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 43 deletions

View File

@ -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 }}

View File

@ -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

View File

@ -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

View File

@ -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 }}

View File

@ -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 }}