Skip to content

Commit

Permalink
ci: create windows packages on separate job
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasgeiler committed Sep 19, 2024
1 parent 3ee77bb commit efdcc01
Showing 1 changed file with 44 additions and 14 deletions.
58 changes: 44 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@ jobs:
name: Check
uses: ./.github/workflows/check.yml

package-and-github-release:
name: Package & GitHub Release
runs-on: windows-latest
create-love-file-and-create-linux-packages:
name: Create .love file & Create Linux packages
runs-on: ubuntu-latest
needs: check

permissions:
contents: write

steps:
- name: Checkout
Expand All @@ -35,15 +33,6 @@ jobs:
build-list: ./joysticktester/
package-path: ./build/joysticktester.love

- name: Create Windows packages
uses: love-actions/love-actions-windows@v1.1.3
with:
love-package: ./build/joysticktester.love
icon-path: ./joysticktester/graphics/icon/multi.ico
product-name: joysticktester
project-website: https://github.com/${{ github.repository }}
output-folder: ./build/

- name: Create Linux packages
uses: love-actions/love-actions-linux@v1.2.2
with:
Expand All @@ -60,6 +49,47 @@ jobs:
shell: bash
run: ls -liashR ./build/

- name: Upload build artifacts
uses: actions/upload-artifact@v4.4.0
with:
name: build-artifacts
path: ./build/

create-windows-packages-and-github-release:
name: Create Windows packages & GitHub release
runs-on: windows-latest
needs: create-love-file-and-create-linux-packages

permissions:
contents: write

steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Download build artifacts
uses: actions/download-artifact@v4.1.8
with:
name: build-artifacts
path: ./build/

- name: List files
shell: bash
run: ls -liashR ./build/

- name: Create Windows packages
uses: love-actions/love-actions-windows@v1.1.3
with:
love-package: ./build/joysticktester.love
icon-path: ./joysticktester/graphics/icon/multi.ico
product-name: joysticktester
project-website: https://github.com/${{ github.repository }}
output-folder: ./build/

- name: List files
shell: bash
run: ls -liashR ./build/

- name: Draft release on GitHub
uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 # v2.0.8
with:
Expand Down

0 comments on commit efdcc01

Please sign in to comment.