Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix release process #9

Merged
merged 5 commits into from
Nov 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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