Merge pull request #146 from ember-engines/deprecate-transition-methods #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Web App Deploy | |
on: | |
push: | |
branches: | |
- master | |
env: | |
NODE_VERSION: 14 | |
jobs: | |
test-app: | |
name: Test app | |
runs-on: ubuntu-latest | |
timeout-minutes: 3 | |
steps: | |
- name: Check out a copy of the repo | |
uses: actions/checkout@v2 | |
- name: Use Node.js ${{ env.NODE_VERSION }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Bootstrapping | |
run: yarn install | |
- name: Test | |
run: yarn test | |
deploy-app: | |
name: Deploy app | |
needs: | |
- test-app | |
runs-on: ubuntu-latest | |
timeout-minutes: 3 | |
steps: | |
- name: Check out a copy of the repo | |
uses: actions/checkout@v2 | |
- name: Use Node.js ${{ env.NODE_VERSION }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Bootstrapping | |
run: yarn install | |
- name: Deploy to Github Pages | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
env: | |
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }} | |
run: yarn deploy |