Skip to content

Build and deploy

Build and deploy #1

name: Build and deploy
on:
push:
tags:
- 'v*.*.*'
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: 'pages'
cancel-in-progress: false
jobs:
build-and-deploy:
name: Build and deploy
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deploy.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Prepare
uses: ./.github/actions/prepare
- name: Build
run: npm run build
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: './dist/'
- name: Deploy
id: deploy
uses: actions/deploy-pages@v2