-
-
Notifications
You must be signed in to change notification settings - Fork 1
101 lines (83 loc) · 3.28 KB
/
Copy pathrelease.yml
File metadata and controls
101 lines (83 loc) · 3.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: Release
on:
push:
tags:
- 'v*.*.*'
jobs:
check:
name: Check
uses: ./.github/workflows/check.yml
create-love-file-and-create-linux-packages:
name: Create .love file & Create Linux packages
needs: check
runs-on: ubuntu-latest
defaults:
run:
shell: bash --noprofile --norc -euxo pipefail {0}
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up JOYSTICKTESTER_VERSION
run: |
JOYSTICKTESTER_VERSION="${GITHUB_REF_NAME#v}"
echo "JOYSTICKTESTER_VERSION=$JOYSTICKTESTER_VERSION"
echo "JOYSTICKTESTER_VERSION=$JOYSTICKTESTER_VERSION" >> "$GITHUB_ENV"
- name: Create love file
working-directory: ./joysticktester/
run: 7z a -tzip ../release/joysticktester.love ./
- name: Create Linux packages
uses: love-actions/love-actions-linux@a88721b73fe4358039f95e523ed6c82124c4c43b # v1.2.3
with:
app-name: Joystick Tester
bundle-id: com.jonasgeiler.joysticktester
description: A simple tool to test joysticks and gamepads
version-string: ${{ env.JOYSTICKTESTER_VERSION }}
icon-path: ./joysticktester/graphics/icon.png
love-package: ./release/joysticktester.love
product-name: joysticktester
output-folder: ./release/
- name: Rename Linux packages
run: |
mv ./release/joysticktester.AppImage ./release/joysticktester_linux_x64.AppImage
mv ./release/joysticktester.deb ./release/joysticktester_linux_x64.deb
- name: Upload release artifacts
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: release-artifacts
path: ./release/
create-windows-packages-and-github-release:
name: Create Windows packages & GitHub release
needs: create-love-file-and-create-linux-packages
runs-on: ubuntu-latest
defaults:
run:
shell: bash --noprofile --norc -euxo pipefail {0}
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Download release artifacts
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: release-artifacts
path: ./release/
- name: Create Windows packages
uses: love-actions/love-actions-windows@9415d83f5753620a85bb3351a61e5dbbf1bc5726 # v1.1.6
with:
love-package: ./release/joysticktester.love
icon-path: ./assets/icon.ico
product-name: joysticktester
project-website: https://github.com/${{ github.repository }}
output-folder: ./release/
- name: Rename Windows packages
run: |
mv ./release/joysticktester_x64.zip ./release/joysticktester_windows_x64.zip
mv ./release/joysticktester_x86.zip ./release/joysticktester_windows_x86.zip
- name: Draft release on GitHub
uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631 # v2.2.2
with:
draft: true
generate_release_notes: true
fail_on_unmatched_files: true
files: ./release/*