Skip to content

Bump actions/upload-pages-artifact from 2 to 3 (#463) #511

Bump actions/upload-pages-artifact from 2 to 3 (#463)

Bump actions/upload-pages-artifact from 2 to 3 (#463) #511

name: Build and Deploy report page
on:
push:
paths:
- ".github/workflows/deploy-report-page.yml"
- "report/**"
- "data/**/diff.geojson"
- "data/**/stats.json"
workflow_dispatch:
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v4
- run: npm install
working-directory: report
- run: npm run build
working-directory: report
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: report/dist
deploy:
runs-on: ubuntu-latest
needs: build
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2