-
Notifications
You must be signed in to change notification settings - Fork 5
55 lines (49 loc) · 1.64 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
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@dfa76f8d0df0f92390ab2d42e57c6537748ecc71
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@a4fcaaf314b117a40d694a35ee36461f8ff3c6e6
with:
node-version: 17.3.0
- name: Build Site
run: |
npm install
npm run build
- name: Set AWS credentials for upload
uses: aws-actions/configure-aws-credentials@0e613a0980cbf65ed5b322eb7a1e075d28913a83
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/planetary-sdi/ --delete