Skip to content
Merged
Show file tree
Hide file tree
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
7 changes: 7 additions & 0 deletions .github/workflows/gen-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,13 @@ jobs:
echo "Re-generated documentation"
git status

- name: Upload wasm as release candidate
if: steps.version-update.outputs.new-version != ''
uses: actions/upload-artifact@v4
with:
name: wasm-${{ steps.version-update.outputs.new-version }}
path: plugin.wasm

- name: Generate PR body
if: steps.version-update.outputs.new-version != ''
env:
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,21 @@ jobs:
fetch-depth: 0
ref: ${{ github.event.workflow_run.head_sha }}

- name: Download artifact
uses: dawidd6/action-download-artifact@v6
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
workflow: build.yml
workflow_conclusion: success
name: wasm-file

- name: Extract version from commit message
id: extract-version
run: |
VERSION=$(git log -1 --pretty=%B | grep -oP 'Release Prep \Kv[0-9]+\.[0-9]+\.[0-9]+')
echo "Extracted version: $VERSION"
echo "version=$VERSION" >> $GITHUB_OUTPUT

- name: Download wasm
uses: dawidd6/action-download-artifact@v6
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
workflow: gen-release-pr.yml
workflow_conclusion: success
name: wasm-${{ steps.extract-version.outputs.version }}

- name: Calculate sha256
run: |
SHA256_HASH=$(sha256sum plugin.wasm | awk '{ print $1 }')
Expand Down
Loading