diff --git a/.github/workflows/publish-yew-agent.yml b/.github/workflows/publish-yew-agent.yml index 21c095d8f..5b8e820e5 100644 --- a/.github/workflows/publish-yew-agent.yml +++ b/.github/workflows/publish-yew-agent.yml @@ -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-agent ${{ github.event.inputs.level }} -t ${{ secrets.GITHUB_TOKEN }} - - - name: Commit changelog - run: | - git add CHANGELOG.md - git commit -m "update CHANGELOG.md for yew-agent release" - git push origin master + - name: Cargo login + run: cargo login ${{ secrets.CRATES_IO_TOKEN }} - name: Release yew-agent - run: cargo release ${PUBLISH_LEVEL} --token ${CRATES_TOKEN} --execute --no-confirm --package yew-agent - env: - PUBLISH_LEVEL: ${{ github.event.inputs.level }} - CRATES_TOKEN: ${{ secrets.CRATES_IO_TOKEN }} + run: cargo release ${PUBLISH_LEVEL} --execute --no-confirm --package yew-agent - name: Get tag id: gettag diff --git a/.github/workflows/publish-yew-router.yml b/.github/workflows/publish-yew-router.yml index cfa551aa6..7fc19e0e5 100644 --- a/.github/workflows/publish-yew-router.yml +++ b/.github/workflows/publish-yew-router.yml @@ -40,35 +40,16 @@ 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-macro - run: cargo release ${PUBLISH_LEVEL} --token ${CRATES_TOKEN} --execute --no-confirm --package yew-router-macro - env: - PUBLISH_LEVEL: ${{ github.event.inputs.level }} - CRATES_TOKEN: ${{ secrets.CRATES_IO_TOKEN }} + run: cargo release ${PUBLISH_LEVEL} --execute --no-confirm --package yew-router-macro - 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 diff --git a/.github/workflows/publish-yew.yml b/.github/workflows/publish-yew.yml index 858a1ab6d..86ca9c82a 100644 --- a/.github/workflows/publish-yew.yml +++ b/.github/workflows/publish-yew.yml @@ -40,19 +40,16 @@ jobs: uses: baptiste0928/cargo-install@v1 with: crate: cargo-release - version: 0.18.5 + version: 0.23.1 + + - name: Cargo login + run: cargo login ${{ secrets.CRATES_IO_TOKEN }} - name: Release yew-macro - run: cargo release ${PUBLISH_LEVEL} --token ${CRATES_TOKEN} --execute --no-confirm --package yew-macro - env: - PUBLISH_LEVEL: ${{ github.event.inputs.level }} - CRATES_TOKEN: ${{ secrets.CRATES_IO_TOKEN }} + run: cargo release ${PUBLISH_LEVEL} --execute --no-confirm --package yew-macro - 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