Skip to content

Merge of repository

Merge of repository #1

Workflow file for this run

name: Deploy to Github pages
on:
push:
branches: [dist]
env:
BUILD_FOLDER: .output/public
jobs:
build:
runs-on: ubuntu-lates
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Generate static ...
uses: actions/setup-node@v3
with:
node-version: "16"
cache: 'yarn'
- run: |
yarn install
yarn generate
- name: Init new repo in $BUILD_FOLDER and commit generated files
- run: |
grep -rnwl "<link rel=\"prefetch\"" $BUILD_FOLDER | xargs sed -i 's$<link rel="prefetch" href="[^"]*\.\(jpg\|png\|webm\|jpeg\|svg\|gif\)">$$g'
cd $BUILD_FOLDER
touch .nojekyll
git init
git add -A
git config --local user.email "[email protected]"
git config --local user.name "Github Action"
git commit -m 'deploy'
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ${{env.BUILD_FOLDER}}