Switch from using Jimmy's GH ID to gha #111
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-to-github-pages | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: github-pages | |
strategy: | |
matrix: | |
node-version: [18.10.0] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install Packages | |
run: npm install --legacy-peer-deps | |
- name: Deploy to GH Pages | |
run: | | |
git config --global user.email "27856297+dependabot-preview[bot]@users.noreply.github.com" | |
git config --global user.name "GitHub actions" | |
git remote set-url origin https://${{ secrets.GH_PAGES_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git | |
npm run deploy |