Skip to content

Commit f313261

Browse files
committed
Update publish.yml releaser
1 parent a4f3191 commit f313261

File tree

1 file changed

+10
-20
lines changed

1 file changed

+10
-20
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -38,37 +38,27 @@ jobs:
3838

3939
runs-on: ubuntu-latest
4040

41-
# TEMP
42-
env:
43-
GH_TOKEN: ${{ github.token }}
44-
4541
steps:
4642
- id: checkout
4743
uses: actions/checkout@v4
4844
- uses: dtolnay/rust-toolchain@stable
49-
- uses: kaleidawave/release-downloader@main
50-
with:
51-
items: kaleidawave/crates-release-gh-action@assets[crates-release]
52-
53-
- name: Update version
54-
id: update-version
55-
run: crates-release change-version patch
56-
working-directory: ${{ matrix.library }}
5745

5846
- uses: rust-lang/crates-io-auth-action@v1
5947
id: auth
6048

61-
- run: cargo publish --allow-dirty
62-
working-directory: ${{ matrix.library }}
63-
env:
64-
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
49+
- uses: kaleidawave/crates-release-gh-action@improvements
50+
id: update-version
51+
with:
52+
crates-token: ${{ steps.auth.outputs.token }}
53+
version: patch
54+
working-directory: ${{ matrix.library }}
6555

6656
- name: Push updated Cargo.toml
57+
env:
58+
GH_TOKEN: ${{ github.token }}
6759
run: |
6860
git config user.name "github-actions[bot]"
6961
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
70-
git add -u .
62+
git add -u
7163
git commit -m "Release: ${{ steps.update-version.outputs.mashrl }}"
72-
git push origin ${{ steps.checkout.outputs.ref }}
73-
env:
74-
GH_TOKEN: ${{ github.token }}
64+
git push origin ${{ steps.checkout.outputs.ref }}

0 commit comments

Comments
 (0)