add gh action #1
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: Deploy Production | |
on: | |
push: | |
branches: | |
- prod | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Disable Debug and Dev Mode | |
run: | | |
# Replace DEBUG_MODE and DEV_MODE with false | |
sed -i 's/const DEBUG_MODE = true/const DEBUG_MODE = false/' script.js | |
sed -i 's/const DEV_MODE = true/const DEV_MODE = false/' script.js | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: . | |
clean: true |