Skip to content

Merge pull request #31 from barbaraperic/pr/header-link #23

Merge pull request #31 from barbaraperic/pr/header-link

Merge pull request #31 from barbaraperic/pr/header-link #23

Workflow file for this run

name: Deploy Pages
on:
push:
branches: [ "main" ]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Setup Node
uses: actions/setup-node@v3
with:
cache: 'npm'
- name: Build
run: |
npm ci
npm run build
# Copy generated static artifacts twice:
# * once to `_site` folder, and
# * once to a sub directory inside it called `dev`.
#
# The former is the default directory picked up by `actions/upload-pages-artifact@v1`.
# The latter is the configured relative path to static asserts for instance running on `dev`
# environment.
#
# This means any changes that are merged to `main` are automatically deployed on both `prod`
# and `dev` environments.
#
# See: https://github.com/actions/upload-pages-artifact/blob/main/action.yml#L8
- name: Prepare artifacts
run: |
mkdir -p _site/dev
cp -r out/* _site
cp -r out/* _site/dev
- name: Upload artifacts
uses: actions/upload-pages-artifact@v1
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1