Update text and header #88
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: Build and deploy to Github pages | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- "*" | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: github.ref != 'refs/heads/main' | |
steps: | |
- name: Checkout main | |
uses: actions/[email protected] | |
- name: Build | |
uses: shalzz/[email protected] | |
env: | |
BUILD_ONLY: true | |
BUILD_FLAGS: --drafts | |
build_and_deploy: | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- name: Checkout main | |
uses: actions/[email protected] | |
- name: Build and deploy | |
uses: shalzz/[email protected] | |
env: | |
PAGES_BRANCH: gh-pages | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |