Merge pull request #284 from garritfra/dependabot/npm_and_yarn/types/… #360
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
on: | |
issues: | |
types: [opened, edited, closed, reopened, deleted, labeled, unlabeled] | |
push: | |
branches: | |
- main | |
name: Deploy to Github Pages | |
jobs: | |
deploy: | |
name: deploy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
name: Checkout | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Cache Node Modules | |
id: cache-node-modules | |
uses: actions/[email protected] | |
with: | |
path: node_modules | |
key: node-modules-${{ hashFiles('package-lock.json') }} | |
- name: Install Dependencies | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: npm install | |
- name: Build | |
env: | |
GH_API_TOKEN: ${{ github.token }} | |
run: | | |
npm run build | |
touch public/.nojekyll | |
echo "seeking-maintainers.net" > CNAME | |
- name: Deploy | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: public |