Skip to content
This repository has been archived by the owner on Aug 17, 2024. It is now read-only.

Commit

Permalink
Update msbuild.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ikt32 authored Dec 24, 2023
1 parent edf609a commit ccf1e7a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit ccf1e7a

Please sign in to comment.