-
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
1 parent
82f2f6c
commit 31cbb18
Showing
1 changed file
with
35 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -186,4 +186,38 @@ jobs: | |
- name: Test SporeModManager (mingw) | ||
run: | | ||
python3 ./SporeModManager/test.py ./artifact/SporeModLoader/SporeModManager/SporeModManager.exe | ||
# actions/upload-artifact still doesn't retain | ||
# file permissions, so we'll need to download | ||
# the artifact, mark the linux executable as | ||
# executable, re-archive it (with better compression) | ||
# and then add it to a draft release | ||
create-draft-release: | ||
runs-on: ubuntu-20.04 | ||
needs: [ msvc-test, linux-test, mingw-test ] | ||
if: github.ref_type == 'tag' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Prepare Environment | ||
run: | | ||
echo "GIT_REVISION=$(git describe --tags --always)" >> $GITHUB_ENV | ||
- name: Download SporeModManager (msvc) | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: SporeModLoader-${{ env.GIT_REVISION }} | ||
path: artifact | ||
- name: Prepare SporeModManager (msvc) | ||
run: | | ||
pushd artifact | ||
rm SporeModLoader/ModLibs/.keep -f | ||
chmod +x SporeModLoader/SporeModManager/SporeModManager | ||
7za a -mm=Deflate -mx=9 -r "../SporeModLoader-${GIT_REVISION}.zip" * | ||
popd | ||
- name: Create Draft Release | ||
uses: ncipollo/[email protected] | ||
with: | ||
draft: true | ||
makeLatest: true | ||
tag: ${{ env.GIT_REVISION }} | ||
artifacts: SporeModLoader-${{ env.GIT_REVISION }}.zip |