From 35fbcbb46ebcfad1faffc3e6cab59760b1761aa0 Mon Sep 17 00:00:00 2001 From: deluan Date: Sat, 7 Feb 2026 21:04:00 -0500 Subject: [PATCH] Add build and release steps to create-release workflow Move the TinyGo build, packaging, and GitHub release creation from release.yml into create-release.yml. This avoids the GITHUB_TOKEN limitation where pushes from a workflow don't trigger other workflows. release.yml is kept as a fallback for manually pushed tags. --- .github/workflows/create-release.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index a4b6deb..e5bfa28 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -13,7 +13,7 @@ permissions: jobs: create-release: - name: Create Release Tag + name: Create Release runs-on: ubuntu-latest steps: - name: Validate version format @@ -61,3 +61,20 @@ jobs: git commit --allow-empty -m "Release v${VERSION}" git tag "v${VERSION}" git push origin main "v${VERSION}" + + - name: Install TinyGo + run: | + wget https://github.com/tinygo-org/tinygo/releases/download/v0.40.1/tinygo_0.40.1_amd64.deb + sudo dpkg -i tinygo_0.40.1_amd64.deb + sudo apt install -y binaryen + + - name: Build and package plugin + run: make package + + - name: Create release + uses: softprops/action-gh-release@v2 + with: + tag_name: v${{ inputs.version }} + draft: true + files: discord-rich-presence.ndp + generate_release_notes: true