Skip to content

Commit

Permalink
ci: create draft release
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosalie241 committed Jan 4, 2024
1 parent 82f2f6c commit 1c3f911
Showing 1 changed file with 40 additions and 1 deletion.
41 changes: 40 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,4 +186,43 @@ jobs:
- name: Test SporeModManager (mingw)
run: |
python3 ./SporeModManager/test.py ./artifact/SporeModLoader/SporeModManager/SporeModManager.exe
create-draft-release:
runs-on: ubuntu-20.04
needs: [ msvc-test, linux-test, mingw-test ]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Prepare Environment
run: |
$env:revision = git describe --tags --always
echo "GIT_REVISION=$env:revision" >> $env:GITHUB_ENV
- name: Download SporeModManager (msvc)
uses: actions/download-artifact@v4
with:
name: SporeModLoader-${{ env.GIT_REVISION }}
path: artifact
- name: Download SporeModManager (mingw)
uses: actions/download-artifact@v4
with:
name: SporeModLoader-mingw-${{ env.GIT_REVISION }}
path: mingw-artifact
- name: Prepare SporeModManager (msvc)
run: |
pushd artifact
chmod +x SporeModLoader/SporeModManager/SporeModManager
zip -r "../SporeModLoader-${GIT_REVISION}.zip" *
popd
- name: Prepare SporeModManager (mingw)
run: |
pushd mingw-artifact
chmod +x SporeModLoader/SporeModManager/SporeModManager
zip -r "../SporeModLoader-mingw-${GIT_REVISION}.zip" *
popd
- name: Create Draft Release
uses: ncipollo/release-action@v1.13.0
with:
draft: true
makeLatest: true
tag: ${{ env.GIT_REVISION }}
artifacts: SporeModLoader-${GIT_REVISION}.zip

0 comments on commit 1c3f911

Please sign in to comment.