Skip to content

[0.0.1901] 2025-01-02 (0143H)(2359H)-(0823H)-(1234H) [Welcome 2025!] #105

[0.0.1901] 2025-01-02 (0143H)(2359H)-(0823H)-(1234H) [Welcome 2025!]

[0.0.1901] 2025-01-02 (0143H)(2359H)-(0823H)-(1234H) [Welcome 2025!] #105

Workflow file for this run

name: Deploy to Github pages
on:
push:
branches: [main]
permissions:
contents: write
env:
BUILD_FOLDER: .output/public
jobs:
build:
runs-on: ubuntu-latest
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
touch .gitignore
- 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}}