upload artifact if not publish
This commit is contained in:
parent
9293e6bf1f
commit
8f2edb175f
1 changed files with 6 additions and 0 deletions
6
.github/workflows/publish.yml
vendored
6
.github/workflows/publish.yml
vendored
|
|
@ -30,4 +30,10 @@ jobs:
|
|||
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
|
||||
git remote set-url --push origin https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
|
||||
make -O V=1 publish
|
||||
- if: github.event_name != 'push' || github.ref != 'refs/heads/main'
|
||||
name: artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: website
|
||||
path: _site
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue