-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.01 KB
/
publish.yaml
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
name: Publish changes to the server
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "static/**"
jobs:
publish:
runs-on: ubuntu-latest
name: Upload to S3
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Generate resume
id: build
uses: docker/build-push-action@v2
with:
push: false
tags: latest
file: Dockerfile.resume
- name: Generate resume
id: generate
run: docker run -v $PWD/static:/usr/src/app ${{ steps.build.outputs.digest }} export resume.html --theme jsonresume-theme-rocketspacer
- name: Upload to S3
uses: jakejarvis/s3-sync-action@master
with:
args: --follow-symlinks --delete
env:
AWS_S3_BUCKET: imdevinc-site
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-west-2'
SOURCE_DIR: ./static