Skip to content

Commit

Permalink
Enabled uploading artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
svelderrain committed Mar 6, 2025
1 parent 76d9eaf commit 31065f7
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/unit-test-and-build-vi-package.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build the icon editor
name: Run unit tests and build VI Package

on:
pull_request:
Expand All @@ -15,7 +15,6 @@ jobs:
name: Build the icon editor
runs-on: [self-hosted, iconeditor]

# Keep only environment variables that do not rely on any step outputs
env:
build_id: ${{ github.run_number }}
RelativePath: ${{ vars.AgentWorkingFolder }}
Expand Down Expand Up @@ -50,7 +49,7 @@ jobs:
# Save the new value to the file
$new_build_revision | Out-File $COUNTER_FILE
# Set the output variable (using recommended method for GitHub Actions)
# Set the output variable for GitHub Actions
echo "build_revision=$new_build_revision" >> $env:GITHUB_OUTPUT
# Optional debugging
Expand All @@ -66,7 +65,6 @@ jobs:
- name: Test and Build the Icon Editor
shell: pwsh
working-directory: ${{ env.RelativePathScripts }}
# Put the dynamic variables at the step level, after "get_revision" is available
env:
build_id: ${{ env.build_id }}
build_revision: ${{ steps.get_revision.outputs.build_revision }}
Expand All @@ -80,8 +78,15 @@ jobs:
run: |
.\RevertDevelopmentMode.ps1 -RelativePath "${{ env.RelativePath }}"
- name: Upload build artifact
uses: actions/upload-artifact@v3
with:
name: vi-package
# Since your workflow base directory is $GITHUB_WORKSPACE,
# simply reference the relative path. Use quotes because of the space.
path: 'builds/VI Package'

- name: Commit and Push Build Counter
# Only commit on these two branches
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop'
uses: stefanzweifel/git-auto-commit-action@v4
with:
Expand Down

0 comments on commit 31065f7

Please sign in to comment.