Skip to content

Merge pull request #59 from 050644zf/echarts #157

Merge pull request #59 from 050644zf/echarts

Merge pull request #59 from 050644zf/echarts #157

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: ASTR Webpage Builder
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
env:
VITE_BASE: /ArknightsStoryTextReader/
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
with:
repository: 050644zf/ArknightsStoryTextReader
ref: gh-pages
path: gh-pages
token: ${{secrets.PAT}}
- uses: actions/setup-node@v2
with:
node-version: '17.5.0'
- run: |
cd reader
npm ci
npm run build
echo "Build Completed!"
cd ..
cp ./reader/dist/* ./gh-pages -r
echo "File Transfer Completed!"
cd gh-pages
git config --global user.email 050644zf@outlook.com
git config --global user.name nightsky
git add -A
git commit --allow-empty -m 'Build'
git push
echo "Build Pushed!"