Skip to content

Commit 10c7d8d

Browse files
authored
Merge pull request #134 from ONEARMY/feat/gh-pages-action
Feat/gh pages action
2 parents 262778b + 11db712 commit 10c7d8d

File tree

3 files changed

+27
-9240
lines changed

3 files changed

+27
-9240
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Build and Deploy To Github Pages
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.3.1
12+
13+
- name: Install and Build 🔧
14+
run: |
15+
cd website
16+
yarn install
17+
npm run build
18+
- name: Deploy 🚀
19+
uses: JamesIves/github-pages-deploy-action@4.1.4
20+
with:
21+
branch: gh-pages # The branch the action should deploy to.
22+
folder: website/build # The folder the action should deploy.
23+
24+
25+
# && GIT_USER="${GH_NAME}" yarn run publish-gh-pages

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ website/**/build
33
.node-version
44
.DS_Store
55
website/i18n/en.json
6+
package-lock.json
7+
*.log

0 commit comments

Comments
 (0)