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-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

View file

@ -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:

View file

@ -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