This repository has been archived by the owner on Aug 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 45
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
14 additions
and
0 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 |
---|---|---|
|
@@ -23,6 +23,17 @@ jobs: | |
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Check for Secret availability | ||
id: secret-check | ||
# perform secret check & put boolean result as an output | ||
shell: bash | ||
run: | | ||
if [ "${{ secrets.ARCHIVE_PASSWORD }}" != '' ]; then | ||
echo "available=true" >> $GITHUB_OUTPUT; | ||
else | ||
echo "available=false" >> $GITHUB_OUTPUT; | ||
fi | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
@@ -37,18 +48,21 @@ jobs: | |
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}} /p:Platform=x64 /p:PostBuildEventUseInBuild=false | ||
|
||
- name: Copy build result to stage dir | ||
if: ${{ steps.secret-check.outputs.available == 'true' }} | ||
run: | | ||
cp Gears/bin/Gears.asi stage/Gears.asi | ||
cp Gears/bin/Gears.pdb stage/Gears.pdb | ||
- name: Create build artifact archive | ||
if: ${{ steps.secret-check.outputs.available == 'true' }} | ||
uses: TheDoctor0/[email protected] | ||
with: | ||
filename: ${{ github.sha }}.zip | ||
directory: stage/ | ||
custom: -p${{ secrets.ARCHIVE_PASSWORD }} | ||
|
||
- name: Upload build artifact | ||
if: ${{ steps.secret-check.outputs.available == 'true' }} | ||
uses: actions/[email protected] | ||
with: | ||
# Artifact name | ||
|