Created
August 11, 2019 03:36
-
-
Save 3stacks/9094b34dc11b72ae2e8f399b9f53696e to your computer and use it in GitHub Desktop.
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: 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