Skip to content

Commit

Permalink
Add step to set sanitized branch name before archive
Browse files Browse the repository at this point in the history
Signed-off-by: Addo.Zhang <[email protected]>
  • Loading branch information
addozhang committed Jun 18, 2024
1 parent 13c814a commit 5542d0f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/hugo-build-and-archive.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,14 @@ jobs:

- name: Build Hugo Site
run: hugo --minify

- name: Set Sanitized Branch Name
id: sanitize
run: |
echo "SANITIZED_BRANCH_NAME=${GITHUB_REF_NAME//\//-}" >> $GITHUB_ENV
- name: Upload Archive
uses: actions/upload-artifact@v2
with:
name: public-archive-${{ github.ref_name || 'main' }}
name: public-archive-${{ env.SANITIZED_BRANCH_NAME }}
path: public

0 comments on commit 5542d0f

Please sign in to comment.