Skip to content

Commit e5ddc85

Browse files
Update CI scripts to upload artifacts. (#479)
1 parent d49c648 commit e5ddc85

3 files changed

Lines changed: 9 additions & 39 deletions

File tree

.github/workflows/build-flatpak.yml

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -54,23 +54,8 @@ jobs:
5454
flatpak-builder --user --force-clean --install-deps-from=flathub --repo=repo --ccache builddir ./flatpak/${{ env.FLATPAK_ID }}.json
5555
flatpak build-bundle repo ./${{ env.FLATPAK_ID }}.flatpak ${{ env.FLATPAK_ID }} --runtime-repo=https://flathub.org/repo/flathub.flatpakrepo
5656
57-
# Uploads the built flatpak bundle to GitHub
58-
# - name: Upload artifact
59-
# uses: actions/upload-artifact@v4
60-
# with:
61-
# name: UnleashedRecomp-flatpak
62-
# path: ./${{ env.FLATPAK_ID }}.flatpak
63-
64-
- name: Upload artifact to Discord
65-
env:
66-
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
67-
if: ${{ env.DISCORD_WEBHOOK != '' }}
68-
uses: tsickert/discord-webhook@v6.0.0
57+
- name: Upload Artifact
58+
uses: actions/upload-artifact@v4
6959
with:
70-
webhook-url: ${{ env.DISCORD_WEBHOOK }}
71-
content: |
72-
OS: Linux
73-
Summary: ${{ env.commit_message }}
74-
Commit: ${{ github.sha }}
75-
Branch: ${{ github.ref_name }}
76-
filename: ./${{ env.FLATPAK_ID }}.flatpak
60+
name: UnleashedRecomp-Flatpak
61+
path: ./${{ env.FLATPAK_ID }}.flatpak

.github/workflows/build-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55

66
env:
77
LLVM_VERSION: 18
8-
CMAKE_PRESET: linux-relwithdebinfo
8+
CMAKE_PRESET: linux-release
99

1010
jobs:
1111
build:

.github/workflows/build-windows.yml

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -72,23 +72,8 @@ jobs:
7272
7373
Compress-Archive -Path .\release\* -DestinationPath .\UnleashedRecomp-Windows.zip
7474
75-
# Uploads the packed zip file to GitHub
76-
# - name: Upload artifact
77-
# uses: actions/upload-artifact@v4
78-
# with:
79-
# name: UnleashedRecomp-Windows
80-
# path: .\UnleashedRecomp-Windows.zip
81-
82-
- name: Upload artifact to Discord
83-
env:
84-
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
85-
if: ${{ env.DISCORD_WEBHOOK != '' }}
86-
uses: tsickert/discord-webhook@v6.0.0
75+
- name: Upload Artifact
76+
uses: actions/upload-artifact@v4
8777
with:
88-
webhook-url: ${{ env.DISCORD_WEBHOOK }}
89-
content: |
90-
OS: Windows
91-
Summary: ${{ env.commit_message }}
92-
Commit: ${{ github.sha }}
93-
Branch: ${{ github.ref_name }}
94-
filename: .\UnleashedRecomp-Windows.zip
78+
name: UnleashedRecomp-Windows
79+
path: .\UnleashedRecomp-Windows.zip

0 commit comments

Comments
 (0)