Skip to content

Add Hangar (PaperMC) upload step to create-release pipeline#85

Open
Copilot wants to merge 1 commit intomasterfrom
copilot/add-paper-hanger-release-plugin
Open

Add Hangar (PaperMC) upload step to create-release pipeline#85
Copilot wants to merge 1 commit intomasterfrom
copilot/add-paper-hanger-release-plugin

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 23, 2026

The release pipeline only published to GitHub Releases; it now also uploads to hangar.papermc.io via benwoo1110/hangar-upload-action@v1.

Changes

  • New step: "Upload to Hangar" — appended after the GitHub release asset upload in create-release.yml
    • Uploads the universal JAR targeting PAPER, VELOCITY, and WATERFALL platforms
    • Reuses the already-computed VERSION env var and changelog step output for version/description
    • Credential supplied via ${{ secrets.HANGAR_API_TOKEN }} (placeholder — secret must be added to repo settings)
    • slug set to AntiVPN — update if the Hangar project slug differs
- name: Upload to Hangar
  uses: benwoo1110/hangar-upload-action@v1
  with:
    api_token: ${{ secrets.HANGAR_API_TOKEN }}
    slug: AntiVPN
    version: ${{ env.VERSION }}
    channel: release
    files: |
      [
        {
          "path": "./build/libs/AntiVPN-${{ env.VERSION }}-universal.jar",
          "platforms": ["PAPER", "VELOCITY", "WATERFALL"]
        }
      ]
    description: ${{ steps.changelog.outputs.content }}

Agent-Logs-Url: https://github.com/funkemunky/AntiVPN/sessions/b41160da-1669-4eb1-a241-828cd26f034f

Co-authored-by: funkemunky <30784509+funkemunky@users.noreply.github.com>
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.

2 participants