|
| 1 | +name: Release |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + tags: |
| 6 | + - 'v*' # Triggers on version tags, e.g., v1.0, v1.1.0 |
| 7 | + |
| 8 | +jobs: |
| 9 | + create-release: |
| 10 | + name: Create GitHub Release |
| 11 | + runs-on: ubuntu-latest |
| 12 | + |
| 13 | + needs: build # Ensure this job runs after the "Compile" job |
| 14 | + |
| 15 | + steps: |
| 16 | + - name: Checkout Repository |
| 17 | + uses: actions/checkout@v4 |
| 18 | + |
| 19 | + - name: Download and Rename Linux Artifact |
| 20 | + uses: actions/download-artifact@v4 |
| 21 | + with: |
| 22 | + name: ${{ github.event.repository.name }}-linux |
| 23 | + path: ./artifacts |
| 24 | + - run: mv ./artifacts/mari0_ae-linux ./artifacts/alesan99s_entities_${{ github.ref_name }}.AppImage |
| 25 | + |
| 26 | + - name: Download and Rename macOS Artifact |
| 27 | + uses: actions/download-artifact@v4 |
| 28 | + with: |
| 29 | + name: ${{ github.event.repository.name }}-macos |
| 30 | + path: ./artifacts |
| 31 | + - run: mv ./artifacts/mari0_ae-macos ./artifacts/alesan99s_entities_${{ github.ref_name }}-macos.zip |
| 32 | + |
| 33 | + - name: Download and Rename Windows 64-bit Artifact |
| 34 | + uses: actions/download-artifact@v4 |
| 35 | + with: |
| 36 | + name: ${{ github.event.repository.name }}-win64 |
| 37 | + path: ./artifacts |
| 38 | + - run: mv ./artifacts/mari0_ae-win64 ./artifacts/alesan99s_entities_${{ github.ref_name }}-win64.zip |
| 39 | + |
| 40 | + - name: Download and Rename Windows 32-bit Artifact |
| 41 | + uses: actions/download-artifact@v4 |
| 42 | + with: |
| 43 | + name: ${{ github.event.repository.name }}-win32 |
| 44 | + path: ./artifacts |
| 45 | + - run: mv ./artifacts/mari0_ae-win32 ./artifacts/alesan99s_entities_${{ github.ref_name }}-win32.zip |
| 46 | + |
| 47 | + - name: Download and Rename Android Release APK |
| 48 | + uses: actions/download-artifact@v4 |
| 49 | + with: |
| 50 | + name: ${{ github.event.repository.name }}-android-release |
| 51 | + path: ./artifacts |
| 52 | + - run: mv ./artifacts/${{ github.event.repository.name }}-android-release ./artifacts/alesan99s_entities_${{ github.ref_name }}.apk |
| 53 | + |
| 54 | + - name: Download and Rename Source Code Artifact |
| 55 | + uses: actions/download-artifact@v4 |
| 56 | + with: |
| 57 | + name: ${{ github.event.repository.name }}-source |
| 58 | + path: ./artifacts |
| 59 | + - run: mv ./artifacts/${{ github.event.repository.name }}-source ./artifacts/alesan99s_entities_${{ github.ref_name }}-source.zip |
| 60 | + |
| 61 | + - name: Create Release |
| 62 | + id: create_release |
| 63 | + uses: actions/create-release@v1 |
| 64 | + with: |
| 65 | + tag_name: ${{ github.ref_name }} |
| 66 | + release_name: Release ${{ github.ref_name }} |
| 67 | + draft: false |
| 68 | + prerelease: false |
| 69 | + generate_release_notes: true |
| 70 | + env: |
| 71 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 72 | + |
| 73 | + - name: Upload Linux Artifact |
| 74 | + uses: actions/upload-release-asset@v1 |
| 75 | + with: |
| 76 | + release_id: ${{ steps.create_release.outputs.id }} |
| 77 | + asset_path: ./artifacts/alesan99s_entities_${{ github.ref_name }}.AppImage |
| 78 | + asset_name: alesan99s_entities_${{ github.ref_name }}.AppImage |
| 79 | + asset_content_type: application/x-executable |
| 80 | + |
| 81 | + - name: Upload macOS Artifact |
| 82 | + uses: actions/upload-release-asset@v1 |
| 83 | + with: |
| 84 | + release_id: ${{ steps.create_release.outputs.id }} |
| 85 | + asset_path: ./artifacts/alesan99s_entities_${{ github.ref_name }}-macos.zip |
| 86 | + asset_name: alesan99s_entities_${{ github.ref_name }}-macos.zip |
| 87 | + asset_content_type: application/zip |
| 88 | + |
| 89 | + - name: Upload Windows 64-bit Artifact |
| 90 | + uses: actions/upload-release-asset@v1 |
| 91 | + with: |
| 92 | + release_id: ${{ steps.create_release.outputs.id }} |
| 93 | + asset_path: ./artifacts/alesan99s_entities_${{ github.ref_name }}-win64.zip |
| 94 | + asset_name: alesan99s_entities_${{ github.ref_name }}-win64.zip |
| 95 | + asset_content_type: application/zip |
| 96 | + |
| 97 | + - name: Upload Windows 32-bit Artifact |
| 98 | + uses: actions/upload-release-asset@v1 |
| 99 | + with: |
| 100 | + release_id: ${{ steps.create_release.outputs.id }} |
| 101 | + asset_path: ./artifacts/alesan99s_entities_${{ github.ref_name }}-win32.zip |
| 102 | + asset_name: alesan99s_entities_${{ github.ref_name }}-win32.zip |
| 103 | + asset_content_type: application/zip |
| 104 | + |
| 105 | + - name: Upload Android Release APK |
| 106 | + uses: actions/upload-release-asset@v1 |
| 107 | + with: |
| 108 | + release_id: ${{ steps.create_release.outputs.id }} |
| 109 | + asset_path: ./artifacts/alesan99s_entities_${{ github.ref_name }}.apk |
| 110 | + asset_name: alesan99s_entities_${{ github.ref_name }}.apk |
| 111 | + asset_content_type: application/vnd.android.package-archive |
| 112 | + |
| 113 | + - name: Upload Source Code |
| 114 | + uses: actions/upload-release-asset@v1 |
| 115 | + with: |
| 116 | + release_id: ${{ steps.create_release.outputs.id }} |
| 117 | + asset_path: ./artifacts/alesan99s_entities_${{ github.ref_name }}-source.zip |
| 118 | + asset_name: alesan99s_entities_${{ github.ref_name }}-source.zip |
| 119 | + asset_content_type: application/zip |
0 commit comments