postcss github actions code example

Example 1: github actions

################################
#### SIMPLE GIT AUTOMATION
################################
 
#execute command -> make gh msg="UpdateFiles"
 
GIT := git
ACTION = add.o commit.o push.o
 
gh: ${ACTION}
 
%.o:
    ${GIT} add .
ifdef msg
    ${GIT} commit -m ${msg}
endif
    ${GIT} push origin master

Example 2: github actions for gitbook

name: 'Gitbook Action Build'
on:
  push:
    branches:
      - master  # trigger branch
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout action
      uses: actions/checkout@v2
    - name: Gitbook Action
      uses: zanderzhao/[email protected]
      with:
        token: ${{ secrets.PERSONAL_TOKEN }}