Skip to content

Fix CI release job trigger path and custom token wiring for gh release - #10

Merged
evildevill merged 2 commits into
mainfrom
copilot/create-github-release-workflow
Jul 25, 2026
Merged

Fix CI release job trigger path and custom token wiring for gh release#10
evildevill merged 2 commits into
mainfrom
copilot/create-github-release-workflow

Conversation

Copilot AI commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

The release workflow was not completing automatically due to an invalid artifact action version and auth wiring that depended on a disallowed secret naming pattern (GITHUB_*). This update aligns the workflow with supported action versions and uses a repository-defined custom secret for release authentication.

  • Release job reliability

    • Updated artifact download action to a valid published version.
    • Ensures the release job can fetch cross-platform build artifacts before publishing.
  • Release authentication via custom secret

    • Switched CLI auth source from secrets.GITHUB_TOKEN to secrets.GITHUBI through GH_TOKEN.
    • Supports repositories where users cannot create secrets with reserved GITHUB_ prefixes.
  • Workflow delta (release step)

    - uses: actions/download-artifact@v4
    
    - name: Upload to GitHub Release
      env:
        GH_TOKEN: ${{ secrets.GITHUBI }}
      run: |
        gh release create "${{ github.ref_name }}" \
          --repo "${{ github.repository }}" \
          --generate-notes \
          release-artifacts/*.AppImage \
          release-artifacts/*.deb \
          release-artifacts/*.exe \
          release-artifacts/*.dmg

@evildevill
evildevill marked this pull request as ready for review July 25, 2026 10:53
Copilot AI review requested due to automatic review settings July 25, 2026 10:53
@evildevill
evildevill merged commit e6cda3a into main Jul 25, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the CI release job to reliably download build artifacts and authenticate gh release create when publishing tag-based releases.

Changes:

  • Replace actions/download-artifact@v5 with the published @v4 release.
  • Add GH_TOKEN wiring for the gh release create step via a repository secret.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/ci.yml
Comment on lines +211 to +212
env:
GH_TOKEN: ${{ secrets.GITHUBI }}
@evildevill
evildevill deleted the copilot/create-github-release-workflow branch July 25, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants