Update CI scripts to upload artifacts. (#479)

This commit is contained in:
Skyth (Asilkan) 2025-02-28 19:46:29 +03:00 committed by GitHub
parent d49c648f12
commit e5ddc85853
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 39 deletions

View file

@ -54,23 +54,8 @@ jobs:
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
# Uploads the built flatpak bundle to GitHub
# - name: Upload artifact
# 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
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
webhook-url: ${{ env.DISCORD_WEBHOOK }}
content: |
OS: Linux
Summary: ${{ env.commit_message }}
Commit: ${{ github.sha }}
Branch: ${{ github.ref_name }}
filename: ./${{ env.FLATPAK_ID }}.flatpak
name: UnleashedRecomp-Flatpak
path: ./${{ env.FLATPAK_ID }}.flatpak

View file

@ -5,7 +5,7 @@ on:
env:
LLVM_VERSION: 18
CMAKE_PRESET: linux-relwithdebinfo
CMAKE_PRESET: linux-release
jobs:
build:

View file

@ -72,23 +72,8 @@ jobs:
Compress-Archive -Path .\release\* -DestinationPath .\UnleashedRecomp-Windows.zip
# Uploads the packed zip file to GitHub
# - name: Upload artifact
# 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
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
webhook-url: ${{ env.DISCORD_WEBHOOK }}
content: |
OS: Windows
Summary: ${{ env.commit_message }}
Commit: ${{ github.sha }}
Branch: ${{ github.ref_name }}
filename: .\UnleashedRecomp-Windows.zip
name: UnleashedRecomp-Windows
path: .\UnleashedRecomp-Windows.zip