This repository has been archived by the owner on Mar 27, 2024. It is now read-only.
chore: fixed base url #3066
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: '/' | |
NUXT_ROUTER_BASE_URL: '/na.brnodobry.cz/' | |
# FULL_BASE_URL: 'https://na.brnodobry.cz/' | |
FULL_BASE_URL: 'https://esnvutbrno.github.io/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 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- 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 |