Skip to content

Commit

Permalink
Add release workflow to create and upload artifacts for a new release.
Browse files Browse the repository at this point in the history
  • Loading branch information
fire committed Sep 20, 2023
1 parent 5f1e56f commit ace4a31
Showing 1 changed file with 110 additions and 0 deletions.
110 changes: 110 additions & 0 deletions .github/workflows/runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,113 @@ jobs:
# appropriately.
needs: linux-build
uses: ./.github/workflows/godot_cpp_test.yml

release:
needs:
[
android-build,
ios-build,
linux-build,
macos-build,
windows-build,
web-build,
godot-cpp-test,
]
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/groups-4.2')

steps:
- name: Download android-template artifact
uses: actions/download-artifact@v2
with:
name: android-template
path: ./artifacts/android-template

- name: Download godot-api-dump artifact
uses: actions/download-artifact@v2
with:
name: godot-api-dump
path: ./artifacts/godot-api-dump

- name: Download ios-template artifact
uses: actions/download-artifact@v2
with:
name: ios-template
path: ./artifacts/ios-template

- name: Download linux-editor-mono artifact
uses: actions/download-artifact@v2
with:
name: linux-editor-mono
path: ./artifacts/linux-editor-mono

- name: Download linux-template-minimal artifact
uses: actions/download-artifact@v2
with:
name: linux-template-minimal
path: ./artifacts/linux-template-minimal

- name: Download linux-template-mono artifact
uses: actions/download-artifact@v2
with:
name: linux-template-mono
path: ./artifacts/linux-template-mono

- name: Download macos-editor artifact
uses: actions/download-artifact@v2
with:
name: macos-editor
path: ./artifacts/macos-editor

- name: Download macos-template artifact
uses: actions/download-artifact@v2
with:
name: macos-template
path: ./artifacts/macos-template

- name: Download web-template artifact
uses: actions/download-artifact@v2
with:
name: web-template
path: ./artifacts/web-template

- name: Download windows-editor artifact
uses: actions/download-artifact@v2
with:
name: windows-editor
path: ./artifacts/windows-editor

- name: Download windows-template artifact
uses: actions/download-artifact@v2
with:
name: windows-template
path: ./artifacts/windows-template

- name: Zip Artifacts
run: |
cd ./artifacts
for dir in */; do
base=$(basename "$dir")
zip -r "${base}.zip" "$dir"
done
cd ..
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/groups-4.2')
with:
files: |
./artifacts/android-template.zip
./artifacts/godot-api-dump.zip
./artifacts/ios-template.zip
./artifacts/linux-editor-mono.zip
./artifacts/linux-template-minimal.zip
./artifacts/linux-template-mono.zip
./artifacts/macos-editor.zip
./artifacts/macos-template.zip
./artifacts/web-template.zip
./artifacts/windows-editor.zip
./artifacts/windows-template.zip
body: "This is a https://github.com/V-Sekai/godot release"
generate_release_notes: true
append_body: true

0 comments on commit ace4a31

Please sign in to comment.