Skip to content

Merge pull request #89 from DFXswiss/develop #54

Merge pull request #89 from DFXswiss/develop

Merge pull request #89 from DFXswiss/develop #54

Workflow file for this run

name: Deploy to Github Pages
on:
push:
branches: [main]
workflow_dispatch:
env:
NODE_VERSION: '16.x'
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build-and-deploy:
name: Build, and deploy to Github Pages
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install packages
run: |
npm ci
- name: Build code
run: |
npm run build
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: 'src/.vuepress/dist/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2