Skip to content

Commit

Permalink
Merge pull request #134 from ONEARMY/feat/gh-pages-action
Browse files Browse the repository at this point in the history
Feat/gh pages action
  • Loading branch information
chrismclarke authored Jul 27, 2021
2 parents 262778b + 11db712 commit 10c7d8d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 9,240 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/deploy-to-github-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build and Deploy To Github Pages
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected]

- name: Install and Build 🔧
run: |
cd website
yarn install
npm run build
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: website/build # The folder the action should deploy.


# && GIT_USER="${GH_NAME}" yarn run publish-gh-pages
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ website/**/build
.node-version
.DS_Store
website/i18n/en.json
package-lock.json
*.log
Loading

0 comments on commit 10c7d8d

Please sign in to comment.