mirror of
https://github.com/danbulant/lucide
synced 2026-07-08 12:40:40 +00:00
Update release workflow
This commit is contained in:
parent
f352054714
commit
b2af463e60
1 changed files with 25 additions and 8 deletions
33
.github/workflows/release.yml
vendored
33
.github/workflows/release.yml
vendored
|
|
@ -18,6 +18,13 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Generate GitHub App token
|
||||||
|
id: app-token
|
||||||
|
uses: getsentry/action-github-app-token@v3
|
||||||
|
with:
|
||||||
|
app_id: ${{ secrets.APP_ID }}
|
||||||
|
private_key: ${{ secrets.APP_PRIVATE_KEY }}
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
|
@ -41,21 +48,31 @@ jobs:
|
||||||
|
|
||||||
- name: Extract version
|
- name: Extract version
|
||||||
id: extract-version
|
id: extract-version
|
||||||
run: echo "VERSION=$(toml get Cargo.toml workspace.package.version --raw)" >> "$GITHUB_OUTPUT"
|
run: echo "VERSION=v$(toml get Cargo.toml workspace.package.version --raw)" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
|
- name: Add changes
|
||||||
|
run: git add **/Cargo.{toml,lock}
|
||||||
|
|
||||||
- name: Commit
|
- name: Commit
|
||||||
uses: EndBug/add-and-commit@v9
|
uses: dsanders11/github-app-commit-action@v1
|
||||||
with:
|
with:
|
||||||
default_author: user_info
|
message: ${{ steps.extract-version.outputs.VERSION }}
|
||||||
message: 'v${{ steps.extract-version.outputs.VERSION }}'
|
token: ${{ steps.app-token.outputs.token }}
|
||||||
tag: 'v${{ steps.extract-version.outputs.VERSION }}'
|
|
||||||
|
|
||||||
- name: Publish
|
- name: Tag
|
||||||
run: cargo workspaces publish --publish-as-is --token "${{ secrets.CRATES_IO_TOKEN }}"
|
uses: bruno-fs/repo-tagger@1.0.0
|
||||||
|
with:
|
||||||
|
tag: ${{ steps.extract-version.outputs.VERSION }}
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
generate_release_notes: true
|
generate_release_notes: true
|
||||||
make_latest: true
|
make_latest: true
|
||||||
tag_name: 'v${{ steps.extract-version.outputs.VERSION }}'
|
tag_name: ${{ steps.extract-version.outputs.VERSION }}
|
||||||
|
token: ${{ steps.app-token.outputs.token }}
|
||||||
|
|
||||||
|
- name: Publish
|
||||||
|
run: cargo workspaces publish --publish-as-is --token "${{ secrets.CRATES_IO_TOKEN }}"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue