Skip to content

Commit

Permalink
Split export templates release
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonhunt02 authored Dec 19, 2024
1 parent 4ffc49c commit 20c07fe
Showing 1 changed file with 69 additions and 1 deletion.
70 changes: 69 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,48 @@ jobs:
name: Godot-${{ matrix.platform }}-${{ matrix.target }}-${{ matrix.precision }}
path: editor

merge:
merge-templates:
runs-on: ubuntu-latest
needs: ["build", "build-native"]
steps:
- name: Merge Export Templates
uses: actions/upload-artifact/merge@v4
with:
name: v-sekai-godot-templates-all
pattern: "*.tpz"
delete-merged: true

- name: Download Artifacts
uses: actions/download-artifact@v4
with:
path: v-sekai-godot-templates
name: v-sekai-godot-templates-all

- name: Split Export Templates Symbols
run: |
mkdir -p v-sekai-godot-templates-symbols
# Suppress if null glob error
mv v-sekai-godot-templates/*.pdb v-sekai-godot-templates-symbols/ || true
mv v-sekai-godot-templates/*.debugsymbols v-sekai-godot-templates-symbols/ || true
mv v-sekai-godot-templates/*.dSYM v-sekai-godot-templates-symbols/ || true
tree
- name: Upload Export Templates
uses: actions/upload-artifact@v4
with:
name: v-sekai-godot-templates
path: v-sekai-godot-templates

- name: Upload Export Templates Symbols
uses: actions/upload-artifact@v4
with:
name: v-sekai-godot-templates-symbols
path: v-sekai-godot-templates-symbols

merge:
runs-on: ubuntu-latest
needs: merge-templates
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -229,6 +268,35 @@ jobs:
draft: false
prerelease: true

upload-templates:
runs-on: ubuntu-latest
needs: release
strategy:
fail-fast: false
matrix:
type: [templates, templates-symbols]
steps:
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
path: v-sekai-godot-${{ matrix.type }}
name: v-sekai-godot-${{ matrix.type }}

- name: Zip Artifacts
run: |
tree
zip -r v-sekai-godot-${{ matrix.type }}.zip v-sekai-godot-${{ matrix.type }}
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.upload_url }}
asset_path: ./v-sekai-godot-${{ matrix.type }}.zip
asset_name: v-sekai-godot-${{ matrix.type }}.zip
asset_content_type: application/zip

upload-releases:
runs-on: ubuntu-latest
needs: release
Expand Down

0 comments on commit 20c07fe

Please sign in to comment.