Skip to content

Commit

Permalink
Fix only uploading artifact on changes to main
Browse files Browse the repository at this point in the history
  • Loading branch information
tetsuo13 committed Aug 31, 2024
1 parent 920a4b2 commit 8f88a22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ jobs:
run: hugo --minify --logLevel info

- name: Upload artifact
#if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}-${{ github.run_number }}
path: public/
retention-days: 1

0 comments on commit 8f88a22

Please sign in to comment.