TinaCMS content update by Rohit Yadav #13
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 | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
cache: yarn | |
- run: | | |
yarn install --frozen-lockfile | |
yarn tinacms build -c "yarn build" | |
export WWW_COMMIT=`git rev-parse HEAD` | |
- name: Publish PR change to www branch | |
uses: peaceiris/actions-gh-pages@v3 | |
if: github.ref == 'refs/heads/main' | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_branch: www | |
publish_dir: ./build | |
destination_dir: ./ | |
force_orphan: true | |
cname: onprem.in |