Skip to content

Merge pull request #94 from SouthFox-D/dependabot/npm_and_yarn/ws-8.17.1 #208

Merge pull request #94 from SouthFox-D/dependabot/npm_and_yarn/ws-8.17.1

Merge pull request #94 from SouthFox-D/dependabot/npm_and_yarn/ws-8.17.1 #208

Workflow file for this run

name: Hexo Deploy
on:
push:
branches: [ hexo ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 17
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install fonttools brotli requests
npm install -g hexo-cli
npm install
git config --global user.name "SouthFox-D"
git config --global user.email "[email protected]"
- name: Deploy
env:
DEPLOY_KEY: ${{ secrets.HEXO_DEPLOY }}
DISCUSSIONS_TOKEN: ${{ secrets.DISCUSSIONS_TOKEN }}
run: |
hexo clean
hexo generate
python3 utils.py -d
pyftsubset Zpix.ttf --text-file=strdb.txt
fonttools ttLib.woff2 compress -o Zpix.woff2 Zpix.subset.ttf
mv Zpix.woff2 ./public/css/fonts
mv Zpix.subset.ttf ./public/css/fonts/Zpix.ttf
mv _headers ./public
cd ./public
git init
git add --all .
git commit -m "GitHub action Auto Builder"
git push --quiet --force https://[email protected]/SouthFox-D/SouthFox-D.github.io.git master