Skip to content

Instantly share code, notes, and snippets.

@3stacks
Created August 11, 2019 03:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 3stacks/9094b34dc11b72ae2e8f399b9f53696e to your computer and use it in GitHub Desktop.
Save 3stacks/9094b34dc11b72ae2e8f399b9f53696e to your computer and use it in GitHub Desktop.
name: Node CI
on: [push]
jobs:
build:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
- name: Use Node.js 10.x
uses: actions/setup-node@v1
with:
version: 10.x
- name: Build
env:
LAST_FM_API_KEY: ${{ secrets.LAST_FM_API_KEY }}
run: |
npm install
mkdir src/pages/blog
npm run build --if-present
- name: Deploy
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET }}
run: node scripts/deploy.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment