Blog Deploy #6
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: Blog Deploy | |
run-name: Blog Deploy | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '**/README.md' | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: GithubPages Deploy | |
uses: enriikke/[email protected] | |
with: | |
access-token: ${{ secrets.GITHUB_TOKEN }} | |
deploy-branch: gh-pages | |
skip-publish: false | |
# - name: Set Git User | |
# run: | | |
# git config user.email "[email protected]" | |
# git config user.name "Jonny-Cho" | |
# | |
# - name: Run deploy | |
# run: | | |
# npm ci | |
# npm run deploy | |
# - name: Setup Node | |
# uses: actions/setup-node@v3 | |
# with: | |
# node-version-file: '.nvmrc' | |
# cache: npm | |
# | |
# - name: Set Git User | |
# run: | | |
# git config user.name "Jonny-Cho" | |
# git config user.email "[email protected]" | |
# | |
# - name: Run deploy | |
# run: | | |
# npm ci | |
# npm run deploy |