-
Notifications
You must be signed in to change notification settings - Fork 4
49 lines (45 loc) · 1.43 KB
/
release.yml
File metadata and controls
49 lines (45 loc) · 1.43 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
name: 📦 Release
on:
workflow_call:
jobs:
release-artifacts:
runs-on: ubuntu-latest
name: ✉️ Release ${{ matrix.artifact }}
strategy:
fail-fast: false
matrix:
artifact:
- godot-with-patchwork-windows
- godot-with-patchwork-linux
- godot-with-patchwork-macos
- patchwork-godot-plugin
- threadbare-with-patchwork
- moddable-platformer-with-patchwork
- moddable-platformer-windows-ready
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
pattern: ${{ matrix.artifact }}
path: ${{ github.workspace }}
# set permissions
- name: Set permissions for Linux
if: matrix.artifact == 'godot-with-patchwork-linux'
shell: bash
run: |
chmod +x ${{ matrix.artifact }}/*
- name: Set permissions for macOS
if: matrix.artifact == 'godot-with-patchwork-macos'
shell: bash
run: |
chmod +x ${{ matrix.artifact }}/godot_macos_editor.app/Contents/MacOS/Godot
- name: Zip artifact
run: |
cd ${{ matrix.artifact }}
zip -r9 ../${{ matrix.artifact }}-${{ github.ref_name }}.zip .
- name: Release artifact
if: github.ref_type == 'tag'
uses: softprops/action-gh-release@v2
with:
files: |
${{ matrix.artifact }}-${{ github.ref_name }}.zip