Publish Website customize #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Website customize | |
on: | |
workflow_dispatch: | |
inputs: | |
baseHref: | |
required: false | |
type: string | |
jobs: | |
jobBuild: | |
name: Publish Website | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out | |
uses: actions/checkout@master | |
- name: Install Package | |
run: npm install | |
- name: collect figma data | |
run: npm run figma token='${{ secrets.FIGMA_TOKEN }}' | |
- name: build static website | |
run: npm run build-static repo='${{ github.repository }}' baseHref='${{ inputs.baseHref }}' | |
- name: Push git subdirectory as branch | |
uses: s0/[email protected] | |
env: | |
REPO: self | |
BRANCH: gh-pages | |
FOLDER: dist | |
GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }} | |
SKIP_EMPTY_COMMITS: true | |
MESSAGE: "[skip ci](build static site):{msg}" |