Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

chore: package node 16 #3063

chore: package node 16

chore: package node 16 #3063

name: Deploy GitHub Pages
on:
push:
branches: [ main ]
workflow_dispatch:
repository_dispatch:
types:
# for dispatch from contentful via webhook
- deploy
# schedule:
# - cron: '*/5 * * * *'
concurrency:
# to disable multiple parallel jobs during changes in contentful
group: ${{ github.ref }}
cancel-in-progress: true
env:
NUXT_ROUTER_BASE_URL: '/'
FULL_BASE_URL: 'https://na.brnodobry.cz/'
CTF_SPACE_ID: ${{ secrets.CTF_SPACE_ID }}
CTF_CDA_ACCESS_TOKEN: ${{ secrets.CTF_CDA_ACCESS_TOKEN }}
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Cache node_modules
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Render website
run: yarn generate
- name: Deploy to GH Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
# cname: na.brnodobry.cz