Skip to content

update-data

update-data #3407

Workflow file for this run

name: Build
on:
workflow_dispatch:
push:
branches: [ master ]
repository_dispatch:
types: [ update-data ]
jobs:
main:
runs-on: ubuntu-latest
if: contains(github.event.head_commit.message, 'Update') || contains(github.event.head_commit.message, 'Fix') || contains(github.event.head_commit.message, 'feat') || contains(github.event_name, 'repository_dispatch')
steps:
- uses: actions/checkout@v2
- name: Checkout data repo
uses: actions/checkout@v2
with:
repository: BLHXFY-Group/BLHXFY
path: group
- name: Move data files
run: cp -r group/data/ ./
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Build data
run: yarn deploy_action
- name: Deploy
if: success()
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}