Skip to content

Commit

Permalink
chore: test deploy on github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
RodrigoCSolari committed Dec 6, 2023
1 parent baae6e9 commit 34483d0
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: deployment

on:
push:
branches: [ "test" ]

jobs:
deploy:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [14.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install Packages
run: npm install
- name: Build page
run: npm run build
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"description": "web front-ent for cheddar",
"repository": "https://github.com/alpha-fi/cheddar-ui-v1",
"scripts": {
"precompile":"yarn build",
"compile":"gh-pages -d build",
"build": "CI=false && react-scripts build",
"build:tsc": "tsc --noEmit",
"build:prod": "rm -rf dist-prod && parcel build src/index.html --no-cache --log-level verbose --public-url ./ --dist-dir dist-prod",
"deploy:pages": "gh-pages -d dist/",
Expand Down

0 comments on commit 34483d0

Please sign in to comment.