Skip to content

Commit 30af8e6

Browse files
committed
ci: switch to ubuntu-24.04 runner
Signed-off-by: Matthew Penner <me@matthewp.io>
1 parent 043c02c commit 30af8e6

File tree

5 files changed

+15
-34
lines changed

5 files changed

+15
-34
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
jobs:
1414
ui:
1515
name: UI
16-
runs-on: ubuntu-20.04
16+
runs-on: ubuntu-24.04
1717
permissions:
1818
contents: read
1919
strategy:

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
jobs:
1414
tests:
1515
name: Tests
16-
runs-on: ubuntu-20.04
16+
runs-on: ubuntu-24.04
1717
permissions:
1818
contents: read
1919
strategy:

.github/workflows/docker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
jobs:
1717
push:
1818
name: Push
19-
runs-on: ubuntu-20.04
19+
runs-on: ubuntu-24.04
2020
if: "!contains(github.ref, 'develop') || (!contains(github.event.head_commit.message, 'skip docker') && !contains(github.event.head_commit.message, 'docker skip'))"
2121
permissions:
2222
contents: read

.github/workflows/lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
jobs:
1414
lint:
1515
name: Lint
16-
runs-on: ubuntu-20.04
16+
runs-on: ubuntu-24.04
1717
permissions:
1818
contents: read
1919
steps:

.github/workflows/release.yaml

Lines changed: 11 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
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
@@ -56,7 +56,7 @@ jobs:
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
@@ -67,25 +67,6 @@ jobs:
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

Comments
 (0)