Skip to content

Commit

Permalink
Test automated deployment github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanbubinski committed Jul 1, 2021
1 parent 25b3125 commit 710c07f
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: master

on:
pull_request:
branches: [master]
push:
branches: [master]

jobs:
checks:
if: github.event_name != 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Test Build
run: |
if [ -e yarn.lock ]; then
yarn install --frozen-lockfile
elif [ -e package-lock.json ]; then
npm ci
else
npm i
fi
npm run build
gh-release:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- uses: webfactory/ssh-agent@v0.5.0
with:
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }}
- name: Release to GitHub Pages
env:
USE_SSH: true
DEPLOYMENT_BRANCH: gh-pages
GIT_USER: git
run: |
git config --global user.email "ryan@decrypt.co"
git config --global user.name "ryanb-consensys"
if [ -e yarn.lock ]; then
yarn install --frozen-lockfile
elif [ -e package-lock.json ]; then
npm ci
else
npm i
fi
npm run deploy

0 comments on commit 710c07f

Please sign in to comment.