Skip to content

Commit c5e95fd

Browse files
committed
Upgrade workflow
1 parent 8828df2 commit c5e95fd

File tree

3 files changed

+26
-22
lines changed

3 files changed

+26
-22
lines changed

.github/main.workflow

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/main.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Build and Deploy
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
build-and-deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout 🛎️
11+
uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
12+
with:
13+
persist-credentials: false
14+
15+
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
16+
run: |
17+
npm install
18+
npm run build
19+
20+
- name: Deploy 🚀
21+
uses: JamesIves/github-pages-deploy-action@releases/v3
22+
with:
23+
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
24+
BRANCH: gh-pages # The branch the action should deploy to.
25+
FOLDER: dist # The folder the action should deploy.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"start": "parcel index.html --no-hmr",
1717
"prebuild": "rm -rf dist",
1818
"build": "parcel build index.html",
19-
"postbuild": "cpy favicon.ico dist"
19+
"postbuild": "cpy {CNAME,favicon.ico} dist"
2020
},
2121
"keywords": [
2222
"explore",

0 commit comments

Comments
 (0)