Skip to content
Snippets Groups Projects
Commit 55681f21 authored by Jay Laura's avatar Jay Laura
Browse files

Adds GH actions deploy

parent 7249522d
No related branches found
No related tags found
No related merge requests found
name: aws-deploy
on:
push:
branches:
- main # Set a branch to deploy
pull_request:
repository_dispatch:
types: [automated_deploy]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
python -m pip install pyspelling
- name: Install Hunspell
run: |
sudo apt-get install hunspell hunspell-en-us
- name: Build documents
run: |
# Perform any documentation building that might be required
- name: Spell check
run: |
python -m pyspelling
- name: Setup Hugo
uses: actions/setup-node@v3
with:
node-version: 16
run: npm install
run: npm run build
- name: Set AWS credentials for upload
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-2
- name: Upload to S3
run: aws s3 sync ./public/ s3://asc-docs/foundationaldataproducts/ --delete
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment