|
| 1 | +# Trigger the job whenever a tag pushed |
| 2 | +name: Release |
| 3 | +on: |
| 4 | + workflow_dispatch: |
| 5 | + push: |
| 6 | + tags: |
| 7 | + - "*" |
| 8 | + |
| 9 | +jobs: |
| 10 | + GodotPie: |
| 11 | + runs-on: ubuntu-latest |
| 12 | + permissions: |
| 13 | + contents: write |
| 14 | + strategy: |
| 15 | + matrix: |
| 16 | + config: |
| 17 | + - name: GodotPie-Linux64-${{ github.ref_name }} |
| 18 | + platform: "Linux x86_64" |
| 19 | + - name: GodotPie-Linux32-${{ github.ref_name }} |
| 20 | + platform: "Linux x86_32" |
| 21 | + - name: GodotPie-Arm64-${{ github.ref_name }} |
| 22 | + platform: "Linux arm64" |
| 23 | + - name: GodotPie-Arm32-${{ github.ref_name }} |
| 24 | + platform: "Linux arm32" |
| 25 | + - name: GodotPie-Windows-${{ github.ref_name }} |
| 26 | + platform: "Windows Desktop" |
| 27 | + |
| 28 | + steps: |
| 29 | + - name: Checkout |
| 30 | + uses: actions/checkout@v5 |
| 31 | + |
| 32 | + - name: Export GodotPie |
| 33 | + id: export |
| 34 | + uses: firebelley/[email protected] |
| 35 | + with: |
| 36 | + # Godot executable download URL |
| 37 | + godot_executable_download_url: https://github.com/godotengine/godot/releases/download/4.4.1-stable/Godot_v4.4.1-stable_linux.x86_64.zip |
| 38 | + # Godot export templates download URL |
| 39 | + godot_export_templates_download_url: https://github.com/godotengine/godot/releases/download/4.4.1-stable/Godot_v4.4.1-stable_export_templates.tpz |
| 40 | + # Relative project path |
| 41 | + relative_project_path: ./pie-menus |
| 42 | + # Relative export path |
| 43 | + relative_export_path: ./pie-menus |
| 44 | + # Export preset |
| 45 | + presets_to_export: ${{ matrix.config.platform }} |
| 46 | + # Enable caching |
| 47 | + cache: true |
| 48 | + # Enable verbose mode |
| 49 | + verbose: true |
| 50 | + # Archive output |
| 51 | + archive_output: true |
| 52 | + |
| 53 | + - name: Create Release |
| 54 | + |
| 55 | + with: |
| 56 | + # GitHub token |
| 57 | + token: ${{ secrets.GITHUB_TOKEN }} |
| 58 | + # Generate release notes |
| 59 | + generateReleaseNotes: true |
| 60 | + # Tag name |
| 61 | + tag: ${{ github.ref_name }} |
| 62 | + # Artifact path |
| 63 | + artifacts: ${{ steps.export.outputs.archive_directory }}/* |
0 commit comments