2024-07-14 Full Release #2
Workflow file for this run
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
name: Create and publish package | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
package-release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
strategy: | |
matrix: | |
configuration: [BelowZero, Subnautica] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get artifact (local testing) | |
if: ${{ env.ACT }} | |
uses: actions/download-artifact@v4 | |
with: | |
name: SCHIZO-${{ matrix.configuration }} | |
path: Install/${{ matrix.configuration }}/BepInEx/plugins/SCHIZO/ | |
- name: Get artifact from build | |
if: ${{ !env.ACT }} | |
uses: dawidd6/action-download-artifact@v6 | |
with: | |
workflow: build.yml | |
name: SCHIZO-${{ matrix.configuration }} | |
path: Install/${{ matrix.configuration }}/BepInEx/plugins/SCHIZO/ | |
- name: Create release archive | |
run: | | |
cd Install/${{ matrix.configuration }} | |
cp BepInEx/plugins/SCHIZO/SCHIZO.dll ../SCHIZO-${{ matrix.configuration }}.dll | |
zip -r9 ../SCHIZO-${{ matrix.configuration }}-with-dependencies.zip * | |
cd ../Common | |
zip -r9 ../SCHIZO-${{ matrix.configuration }}-with-dependencies.zip * | |
- name: Upload the release (local testing) | |
if: ${{ env.ACT }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Release-${{ matrix.configuration }} | |
path: Install/SCHIZO-${{ matrix.configuration }}* | |
- name: Update the release | |
if: ${{ !env.ACT }} | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: | | |
Install/SCHIZO-${{ matrix.configuration }}-with-dependencies.zip | |
Install/SCHIZO-${{ matrix.configuration }}.dll |