Skip to content

青龙自动提交 2024-02-23 15:48:00 #104

青龙自动提交 2024-02-23 15:48:00

青龙自动提交 2024-02-23 15:48:00 #104

Workflow file for this run

# This workflow will do a clean install of node dependencies, 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: 生成静态文件
on:
push:
branches: [ main ]
jobs:
build:
name: 🎉 Deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 1.Get latest code
uses: actions/checkout@v2
- run: echo 'VUE_APP_DEFAULT_CONFIG_URL=${{ secrets.ENV_DEFAULT_CONFIG_URL }}' > .env
- uses: borales/actions-yarn@v2.3.0
with:
cmd: install # will run `yarn install` command
- uses: borales/actions-yarn@v2.3.0
with:
cmd: build # will run `yarn build` command
- uses: borales/actions-yarn@v2.3.0
with:
cmd: global add serve # will run `yarn test` command
- name: 📂 5.Deploy-gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
keep_files: true