mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-10-30 07:11:05 +00:00
Update CI scripts to upload artifacts. (#479)
This commit is contained in:
parent
d49c648f12
commit
e5ddc85853
3 changed files with 9 additions and 39 deletions
23
.github/workflows/build-flatpak.yml
vendored
23
.github/workflows/build-flatpak.yml
vendored
|
|
@ -54,23 +54,8 @@ jobs:
|
||||||
flatpak-builder --user --force-clean --install-deps-from=flathub --repo=repo --ccache builddir ./flatpak/${{ env.FLATPAK_ID }}.json
|
flatpak-builder --user --force-clean --install-deps-from=flathub --repo=repo --ccache builddir ./flatpak/${{ env.FLATPAK_ID }}.json
|
||||||
flatpak build-bundle repo ./${{ env.FLATPAK_ID }}.flatpak ${{ env.FLATPAK_ID }} --runtime-repo=https://flathub.org/repo/flathub.flatpakrepo
|
flatpak build-bundle repo ./${{ env.FLATPAK_ID }}.flatpak ${{ env.FLATPAK_ID }} --runtime-repo=https://flathub.org/repo/flathub.flatpakrepo
|
||||||
|
|
||||||
# Uploads the built flatpak bundle to GitHub
|
- name: Upload Artifact
|
||||||
# - name: Upload artifact
|
uses: actions/upload-artifact@v4
|
||||||
# uses: actions/upload-artifact@v4
|
|
||||||
# with:
|
|
||||||
# name: UnleashedRecomp-flatpak
|
|
||||||
# path: ./${{ env.FLATPAK_ID }}.flatpak
|
|
||||||
|
|
||||||
- name: Upload artifact to Discord
|
|
||||||
env:
|
|
||||||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
|
||||||
if: ${{ env.DISCORD_WEBHOOK != '' }}
|
|
||||||
uses: tsickert/discord-webhook@v6.0.0
|
|
||||||
with:
|
with:
|
||||||
webhook-url: ${{ env.DISCORD_WEBHOOK }}
|
name: UnleashedRecomp-Flatpak
|
||||||
content: |
|
path: ./${{ env.FLATPAK_ID }}.flatpak
|
||||||
OS: Linux
|
|
||||||
Summary: ${{ env.commit_message }}
|
|
||||||
Commit: ${{ github.sha }}
|
|
||||||
Branch: ${{ github.ref_name }}
|
|
||||||
filename: ./${{ env.FLATPAK_ID }}.flatpak
|
|
||||||
2
.github/workflows/build-linux.yml
vendored
2
.github/workflows/build-linux.yml
vendored
|
|
@ -5,7 +5,7 @@ on:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
LLVM_VERSION: 18
|
LLVM_VERSION: 18
|
||||||
CMAKE_PRESET: linux-relwithdebinfo
|
CMAKE_PRESET: linux-release
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
|
||||||
23
.github/workflows/build-windows.yml
vendored
23
.github/workflows/build-windows.yml
vendored
|
|
@ -72,23 +72,8 @@ jobs:
|
||||||
|
|
||||||
Compress-Archive -Path .\release\* -DestinationPath .\UnleashedRecomp-Windows.zip
|
Compress-Archive -Path .\release\* -DestinationPath .\UnleashedRecomp-Windows.zip
|
||||||
|
|
||||||
# Uploads the packed zip file to GitHub
|
- name: Upload Artifact
|
||||||
# - name: Upload artifact
|
uses: actions/upload-artifact@v4
|
||||||
# uses: actions/upload-artifact@v4
|
|
||||||
# with:
|
|
||||||
# name: UnleashedRecomp-Windows
|
|
||||||
# path: .\UnleashedRecomp-Windows.zip
|
|
||||||
|
|
||||||
- name: Upload artifact to Discord
|
|
||||||
env:
|
|
||||||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
|
||||||
if: ${{ env.DISCORD_WEBHOOK != '' }}
|
|
||||||
uses: tsickert/discord-webhook@v6.0.0
|
|
||||||
with:
|
with:
|
||||||
webhook-url: ${{ env.DISCORD_WEBHOOK }}
|
name: UnleashedRecomp-Windows
|
||||||
content: |
|
path: .\UnleashedRecomp-Windows.zip
|
||||||
OS: Windows
|
|
||||||
Summary: ${{ env.commit_message }}
|
|
||||||
Commit: ${{ github.sha }}
|
|
||||||
Branch: ${{ github.ref_name }}
|
|
||||||
filename: .\UnleashedRecomp-Windows.zip
|
|
||||||
Loading…
Add table
Reference in a new issue