fix: encryption key should be per server, not per backup. #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| jobs: | |
| release: | |
| name: Release | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: write # write is required to create releases and push. | |
| steps: | |
| - name: Code checkout | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Setup Go | |
| uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | |
| with: | |
| go-version: "1.23.7" | |
| - name: Build release binaries | |
| env: | |
| CGO_ENABLED: 0 | |
| REF: ${{ github.ref }} | |
| run: | | |
| GOARCH=amd64 go build -o dist/wings_linux_amd64 -v -trimpath -ldflags="-s -w -X github.com/pterodactyl/wings/system.Version=${REF:11}" github.com/pterodactyl/wings | |
| chmod 755 dist/wings_linux_amd64 | |
| GOARCH=arm64 go build -o dist/wings_linux_arm64 -v -trimpath -ldflags="-s -w -X github.com/pterodactyl/wings/system.Version=${REF:11}" github.com/pterodactyl/wings | |
| chmod 755 dist/wings_linux_arm64 | |
| - name: Extract changelog | |
| env: | |
| REF: ${{ github.ref }} | |
| run: | | |
| sed -n "/^## ${REF:10}/,/^## /{/^## /b;p}" CHANGELOG.md > ./RELEASE_CHANGELOG | |
| - name: Create checksum and add to changelog | |
| run: | | |
| SUM=`cd dist && sha256sum wings_linux_amd64` | |
| SUM2=`cd dist && sha256sum wings_linux_arm64` | |
| echo -e "\n#### SHA256 Checksum\n\`\`\`\n$SUM\n$SUM2\n\`\`\`\n" >> ./RELEASE_CHANGELOG | |
| echo -e "$SUM\n$SUM2" > checksums.txt | |
| - name: Create release branch | |
| env: | |
| REF: ${{ github.ref }} | |
| run: | | |
| BRANCH=release/${REF:10} | |
| git config --local user.email "[email protected]" | |
| git config --local user.name "Pterodactyl CI" | |
| git checkout -b $BRANCH | |
| git push -u origin $BRANCH | |
| sed -i "s/var Version = \".*\"/var Version = \"${REF:11}\"/" system/const.go | |
| git add system/const.go | |
| git commit -m "bump version for release" | |
| git push | |
| - name: Create release | |
| uses: softprops/action-gh-release@72f2c25fcb47643c292f7107632f7a47c1df5cd8 # v2.3.2 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| draft: true | |
| prerelease: ${{ contains(github.ref, 'rc') || contains(github.ref, 'beta') || contains(github.ref, 'alpha') }} | |
| body_path: ./RELEASE_CHANGELOG | |
| files: | | |
| dist/* | |
| checksums.txt |