gha: use default naming for upload-pages-artifact #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GitHub Pages build and deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/configure-pages@v3 | |
id: pages | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Install deps | |
run: npm install | |
- name: Build site serving directory (/docs) | |
run: npm run build | |
- uses: actions/upload-pages-artifact@v3 | |
with: | |
path: ./docs | |
deploy: | |
needs: build | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{steps.deployment.outputs.page_url}} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/deploy-pages@v4 | |
id: deployment |