Skip to content

Commit

Permalink
add flag for artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenHodgson committed Nov 10, 2022
1 parent eb03c90 commit cd39367
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,20 @@ runs:
args: '-quit -nographics -batchmode -executeMethod Utilities.Editor.BuildPipeline.UnityPlayerBuildTools.StartCommandLineBuild ${{ inputs.additional-build-args }}'

- uses: josStorer/[email protected]
if: always()
if: ${{ always() && inputs.publish-artifacts == 'true' }}
id: current-time
with:
format: YYYY-MM-DDTHH-mm-ss-sss

- uses: actions/upload-artifact@v3
name: Upload Artifacts
if: always()
if: ${{ always() && inputs.publish-artifacts == 'true' }}
with:
name: '${{ runner.os }}-${{ inputs.build-target }}-Artifacts-${{ steps.current-time.outputs.formattedTime }}'
path: '${{ env.UNITY_PROJECT_PATH }}/Builds'

- name: Clean Artifacts
if: always()
if: ${{ always() && inputs.publish-artifacts == 'true' }}
run: |
# Clean Artifacts
$artifacts = "${{ env.UNITY_PROJECT_PATH }}/Builds"
Expand Down

0 comments on commit cd39367

Please sign in to comment.