Skip to content

Commit c4d7c25

Browse files
voidpumpkinWorldSEnder
authored andcommitted
Fix release actions (yewstack#2986)
1 parent 9c3e439 commit c4d7c25

File tree

5 files changed

+11
-43
lines changed

5 files changed

+11
-43
lines changed

.github/workflows/publish-yew-agent.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
uses: baptiste0928/cargo-install@v1
4141
with:
4242
crate: cargo-release
43-
version: 0.23.1
43+
version: =0.23.1
4444

4545
- name: Cargo login
4646
run: cargo login ${{ secrets.CRATES_IO_TOKEN }}

.github/workflows/publish-yew-only.yml

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -41,29 +41,13 @@ jobs:
4141
uses: baptiste0928/cargo-install@v1
4242
with:
4343
crate: cargo-release
44-
version: 0.18.5
44+
version: =0.23.1
4545

46-
- name: Build changelog generator
47-
run: cargo build --release -p changelog
48-
working-directory: tools
49-
50-
- name: Generate changelog
51-
uses: mathiasvr/command-output@v1
52-
id: changelog
53-
with:
54-
run: ./target/release/changelog yew ${{ github.event.inputs.level }} -t ${{ secrets.GITHUB_TOKEN }}
55-
56-
- name: Commit changelog
57-
run: |
58-
git add CHANGELOG.md
59-
git commit -m "update CHANGELOG.md for yew release"
60-
git push origin master
46+
- name: Cargo login
47+
run: cargo login ${{ secrets.CRATES_IO_TOKEN }}
6148

6249
- name: Release yew
63-
run: cargo release ${PUBLISH_LEVEL} --token ${CRATES_TOKEN} --execute --no-confirm --package yew
64-
env:
65-
PUBLISH_LEVEL: ${{ github.event.inputs.level }}
66-
CRATES_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
50+
run: cargo release ${PUBLISH_LEVEL} --execute --no-confirm --package yew
6751

6852
- name: Get tag
6953
id: gettag

.github/workflows/publish-yew-router-only.yml

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -40,29 +40,13 @@ jobs:
4040
uses: baptiste0928/cargo-install@v1
4141
with:
4242
crate: cargo-release
43-
version: 0.18.5
43+
version: =0.23.1
4444

45-
- name: Build changelog generator
46-
run: cargo build --release -p changelog
47-
working-directory: tools
48-
49-
- name: Generate changelog
50-
uses: mathiasvr/command-output@v1
51-
id: changelog
52-
with:
53-
run: ./target/release/changelog yew-router ${{ github.event.inputs.level }} -t ${{ secrets.GITHUB_TOKEN }}
54-
55-
- name: Commit changelog
56-
run: |
57-
git add CHANGELOG.md
58-
git commit -m "update CHANGELOG.md for yew-router release"
59-
git push origin master
45+
- name: Cargo login
46+
run: cargo login ${{ secrets.CRATES_IO_TOKEN }}
6047

6148
- name: Release yew-router
62-
run: cargo release ${PUBLISH_LEVEL} --token ${CRATES_TOKEN} --execute --no-confirm --package yew-router
63-
env:
64-
PUBLISH_LEVEL: ${{ github.event.inputs.level }}
65-
CRATES_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
49+
run: cargo release ${PUBLISH_LEVEL} --execute --no-confirm --package yew-router
6650

6751
- name: Get tag
6852
id: gettag

.github/workflows/publish-yew-router.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
uses: baptiste0928/cargo-install@v1
4141
with:
4242
crate: cargo-release
43-
version: 0.23.1
43+
version: =0.23.1
4444

4545
- name: Cargo login
4646
run: cargo login ${{ secrets.CRATES_IO_TOKEN }}

.github/workflows/publish-yew.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
uses: baptiste0928/cargo-install@v1
4141
with:
4242
crate: cargo-release
43-
version: 0.23.1
43+
version: =0.23.1
4444

4545
- name: Cargo login
4646
run: cargo login ${{ secrets.CRATES_IO_TOKEN }}

0 commit comments

Comments
 (0)