Skip to content

Commit

Permalink
update deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
brycedorn committed Nov 14, 2023
1 parent 537da05 commit f86ffba
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 47 deletions.
24 changes: 9 additions & 15 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,20 @@
name: Build and Deploy
on:
push:
branches:
- master
on: [push]
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
persist-credentials: false

node-version: 18
- name: Install and Build 🔧
run: |
npm install
npm ci
npm run build -- --public-url https://bryce.io/react-intense
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@3.7.1
uses: JamesIves/github-pages-deploy-action@v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: public # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch
folder: public
74 changes: 42 additions & 32 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f86ffba

Please sign in to comment.