Updating automation to use credentials #2
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: Hugo Deploy To S3 | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out main | |
uses: actions/checkout@master | |
- name: Setup Node.js environment | |
uses: actions/[email protected] | |
- name: NPM Install | |
run: npm install | |
- name: Build Hugo | |
run: npm run build | |
- name: Deploy to S3 | |
run: npm run deploy | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |