|
1 | | -name: Build Godot Project |
| 1 | +name: Build and Release Spectrum Client |
2 | 2 |
|
3 | 3 | on: |
4 | | - push: {} |
5 | | - pull_request: {} |
| 4 | + push: |
| 5 | + tags: |
| 6 | + - "v*" |
6 | 7 |
|
7 | 8 | jobs: |
8 | | - Godot: |
| 9 | + export_spectrum: |
| 10 | + name: Build Spectrum Client |
9 | 11 | runs-on: ubuntu-latest |
10 | | - strategy: |
11 | | - matrix: |
12 | | - platform: [win64, linux/X11, macOS] |
| 12 | + permissions: write-all |
| 13 | + |
13 | 14 | steps: |
14 | | - - uses: actions/checkout@v2 |
| 15 | + - name: Checkout repository |
| 16 | + uses: actions/checkout@v4 |
15 | 17 | with: |
16 | 18 | lfs: true |
17 | | - - name: Build |
18 | | - id: build |
19 | | - uses: manleydev/build-godot-action@v1.4.1 |
| 19 | + |
| 20 | + - name: Export Spectrum |
| 21 | + id: export |
| 22 | + uses: firebelley/godot-export@v6.0.0 |
20 | 23 | with: |
21 | | - name: Spectrum |
22 | | - preset: ${{ matrix.platform }} |
23 | | - debugMode: "false" |
24 | | - - name: Upload Artifact |
25 | | - uses: actions/upload-artifact@v4 |
| 24 | + godot_executable_download_url: https://github.com/godotengine/godot-builds/releases/download/4.4.1-stable/Godot_v4.4.1-stable_linux.x86_64.zip |
| 25 | + godot_export_templates_download_url: https://github.com/godotengine/godot-builds/releases/download/4.4.1-stable/Godot_v4.4.1-stable_export_templates.tpz |
| 26 | + relative_project_path: ./ |
| 27 | + archive_output: true |
| 28 | + presets_to_export: Windows, Linux, macOS |
| 29 | + |
| 30 | + - name: Create GitHub Release |
| 31 | + uses: ncipollo/release-action@v1.14.0 |
26 | 32 | with: |
27 | | - name: Spectrum - ${{ matrix.platform }} |
28 | | - path: ${{ github.workspace }}/${{ steps.build.outputs.build }} |
| 33 | + token: ${{ secrets.GITHUB_TOKEN }} |
| 34 | + generateReleaseNotes: true |
| 35 | + tag: ${{ github.ref_name }} |
| 36 | + artifacts: ${{ steps.export.outputs.archive_directory }}/* |
| 37 | + |
0 commit comments