Skip to content

Commit

Permalink
fix release process (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdtfh authored Nov 18, 2024
1 parent d5c0b86 commit 912bd7d
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
- uses: actions/checkout@v4
with:
ref: main
token: ${{ secrets.GIT_HUB_TOKEN }}

- name: Calculate new version
id: version
Expand Down Expand Up @@ -81,9 +82,8 @@ jobs:
- name: Update version
run: cargo set-version --package walletkit-core ${{ steps.version.outputs.new_version }}

# Commit uses GIT_HUB_TOKEN which has permissions to push (set on actions/checkout)
- name: Commit and Push Changes
env:
GITHUB_TOKEN: ${{ secrets.GIT_HUB_TOKEN }}
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
Expand Down Expand Up @@ -165,10 +165,22 @@ jobs:
permissions:
contents: write
steps:
- name: Create Release
- name: Create Release in main repo
uses: softprops/action-gh-release@v2
with:
name: ${{ needs.update-cargo-version.outputs.new_version }}
tag_name: ${{ needs.update-cargo-version.outputs.new_version }}
generate_release_notes: true
make_latest: true

- name: Create Release in swift repo
uses: softprops/action-gh-release@v2
with:
repository: worldcoin/walletkit-swift
token: ${{ secrets.GIT_HUB_TOKEN }}
name: ${{ needs.update-cargo-version.outputs.new_version }}
tag_name: ${{ needs.update-cargo-version.outputs.new_version }}
body: |
## Version ${{ needs.update-cargo-version.outputs.new_version }}
For full release notes, see the [main repo release](https://github.com/worldcoin/walletkit/releases/tag/${{ needs.update-cargo-version.outputs.new_version }}).
make_latest: true

0 comments on commit 912bd7d

Please sign in to comment.