Skip to content

Commit

Permalink
ci: fix artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
chenasraf committed Nov 4, 2024
1 parent 06fba6c commit 6813e44
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ jobs:
bundle: Redot.flatpak
manifest-path: org.redotengine.Redot.yaml
cache-key: flatpak-builder-${{ github.sha }}

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: Redot.flatpak
path: Redot.flatpak

snap:
name: Snapcraft Build
runs-on: ubuntu-latest
Expand All @@ -41,13 +48,15 @@ jobs:
uses: canonical/setup-lxd@main

- name: Snapcraft Build
run: snapcraft
run: |
snapcraft
mv redot_*.snap Redot.snap
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: Redot.snap
path: redot*.snap
path: Redot.snap

release:
name: Create Release
Expand All @@ -63,6 +72,8 @@ jobs:
VERSION="${{ github.ref_name }}"
VERSION="${VERSION/v//}"
echo VERSION=${VERSION} >> $GITHUB_ENV
- name: Download Artifacts
uses: actions/download-artifact@v4
- name: Create Release
uses: softprops/action-gh-release@v1
env:
Expand All @@ -72,12 +83,12 @@ jobs:
body: |
Flatpak and Snapcraft builds for Redot ${{ env.VERSION }}
- [Source code](https://github.com/Redot-Engine/redot-engine/releases/tag/redot-${{ env.VERSION }}
- [Source code](https://github.com/Redot-Engine/redot-engine/releases/tag/redot-${{ env.VERSION }})
- [Snap Store](https://snapcraft.io/redot)
<!-- [FlatHub](https://flathub.org/apps/details/org.redotengine.Redot) -->
<!-- - [FlatHub](https://flathub.org/apps/details/org.redotengine.Redot) -->
draft: false
prerelease: ${{ startsWith(github.ref_name, 'v') && contains(github.ref, 'beta') }}
files: |
Redot-x86_64
Redot.flatpak
Redot.snap

0 comments on commit 6813e44

Please sign in to comment.