Skip to content

Bump actions/configure-pages from 4 to 5 #7

Bump actions/configure-pages from 4 to 5

Bump actions/configure-pages from 4 to 5 #7

Workflow file for this run

name: Build and Deploy
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
pages: write
id-token: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'latest'
cache: 'npm'
- name: Install and Build
run: |
npm ci
npx webpack
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: my-artifact
path: dist
overwrite: true
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2