Skip to content

Configure Renovate

Configure Renovate #21

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [main]
pull_request:
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build-and-deply-to-github-pages"
build-and-deply-to-github-pages:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout
uses: actions/checkout@v2
- uses: actions/cache@v2
id: cache-yarn
with:
path: "**/node_modules"
key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: yarn-${{ runner.os }}-
- name: Install
if: steps.cache-yarn.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile --production
- name: Cached deps size
run: du -hs node_modules
- name: Build
run: yarn build
env:
NEXT_PUBLIC_BASE_PATH: /${{ github.event.repository.name }}
# the .nojekyll file is required for folders that start with an underscore (otherwise they wont be served by gh)
- name: Export
run: |
yarn export
touch ./out/_next/.nojekyll
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out
enable_jekyll: false