Fixing actions/upload-artifact entry in deploy.yml

This commit is contained in:
niclaz 2024-09-05 17:47:10 +02:00 committed by GitHub
parent f203a4667d
commit 3cc949ec5f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 3 deletions

View File

@ -14,6 +14,7 @@ on:
# Allow this job to clone the repo and create a page deployment
permissions:
actions: read
contents: read
pages: write
id-token: write
@ -48,15 +49,19 @@ jobs:
- name: Upload Pages artifact
uses: actions/upload-artifact@v4
with:
path: ./dist
name: W3PN-artifact
path: ~/pre-deploy-artifact-upload/
if-no-files-found: warn
retention-days: 80
overwrite: true
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4