-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run workflow to build | ||
- name: Run "Create .love file and build to .exe" workflow | ||
uses: convictional/[email protected] | ||
with: | ||
owner: ${{ github.repository_owner }} | ||
|
@@ -29,12 +29,20 @@ jobs: | |
|
||
- name: Download artifact | ||
uses: actions/download-artifact@v3 | ||
continue-on-error: true | ||
with: | ||
name: Game Build | ||
path: ./release-artifacts | ||
|
||
- name: Check if artifact was downloaded | ||
id: check_files | ||
uses: andstor/file-existence-action@v2 | ||
with: | ||
files: "./release-artifacts/Game Build.zip" | ||
|
||
- name: Create Release | ||
id: create_release | ||
if: steps.check_files.outputs.files_exists == 'true' | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.PAT }} | ||
|
@@ -45,11 +53,18 @@ jobs: | |
prerelease: false | ||
|
||
- name: Upload Release Asset | ||
if: steps.check_files.outputs.files_exists == 'true' | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.PAT }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./release-artifacts/Game Build.zip | ||
asset_name: GameBuild-${{ github.event.inputs.version }}.zip | ||
asset_content_type: application/zip | ||
asset_content_type: application/zip | ||
|
||
- name: Notify about missing artifact | ||
if: steps.check_files.outputs.files_exists == 'false' | ||
run: | | ||
echo "The Game Build artifact was not found. Please check the 'Create .love file and build to .exe' workflow." | ||
exit 1 |