88jobs :
99 release :
1010 name : Release
11- runs-on : ubuntu-20 .04
11+ runs-on : ubuntu-24 .04
1212 permissions :
1313 contents : write # write is required to create releases and push.
1414 steps :
@@ -31,14 +31,14 @@ jobs:
3131 env :
3232 REF : ${{ github.ref }}
3333 run : |
34- BRANCH=release/${REF:10}
35- git config --local user.email " ci@pterodactyl.io"
36- git config --local user.name " Pterodactyl CI"
37- git checkout -b $BRANCH
38- git push -u origin $BRANCH
34+ BRANCH=release/" ${REF:10}"
35+ git config --local user.email ' ci@pterodactyl.io'
36+ git config --local user.name ' Pterodactyl CI'
37+ git checkout -b " $BRANCH"
38+ git push -u origin " $BRANCH"
3939 sed -i "s/ 'version' => 'canary',/ 'version' => '${REF:11}',/" config/app.php
4040 git add config/app.php
41- git commit -m " ci(release): bump version"
41+ git commit -m ' ci(release): bump version'
4242 git push
4343
4444 - name : Create release archive
5656 run : |
5757 SUM=`sha256sum panel.tar.gz`
5858 echo -e "\n#### SHA256 Checksum\n\n\`\`\`\n$SUM\n\`\`\`\n" >> ./RELEASE_CHANGELOG
59- echo $SUM > checksum.txt
59+ echo " $SUM" > checksum.txt
6060
6161 - name : Create release
6262 id : create_release
6767 draft : true
6868 prerelease : ${{ contains(github.ref, 'rc') || contains(github.ref, 'beta') || contains(github.ref, 'alpha') }}
6969 body_path : ./RELEASE_CHANGELOG
70-
71- - name : Upload release archive
72- id : upload-release-archive
73- uses : actions/upload-release-asset@v1
74- env :
75- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
76- with :
77- upload_url : ${{ steps.create_release.outputs.upload_url }}
78- asset_path : panel.tar.gz
79- asset_name : panel.tar.gz
80- asset_content_type : application/gzip
81-
82- - name : Upload release checksum
83- id : upload-release-checksum
84- uses : actions/upload-release-asset@v1
85- env :
86- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
87- with :
88- upload_url : ${{ steps.create_release.outputs.upload_url }}
89- asset_path : ./checksum.txt
90- asset_name : checksum.txt
91- asset_content_type : text/plain
70+ files : |
71+ panel.tar.gz
72+ checksum.txt
0 commit comments