-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (54 loc) · 1.34 KB
/
herdotsh.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
56
57
58
name: her.sh
on:
push:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
env:
JEKYLL_ENV: production
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.2
- name: Bundle install
run: rake setup
- name: jekyll build
run: rake build
- name: Lint
run: rake lint
- name: cache
uses: actions/upload-artifact@v4
with:
name: site
path: _site
if-no-files-found: error
deploy:
runs-on: ubuntu-latest
needs: build
concurrency: production
environment: production
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: s3cmd
run: |
python -m pip install --upgrade pip
pip install s3cmd
s3cmd --version
- name: Download site
uses: actions/download-artifact@v4
with:
name: site
path: _site
- name: Publish
env:
PUSHOVER_APP: ${{ secrets.pushover_app }}
PUSHOVER_USER: ${{ secrets.pushover_user }}
SITE_AWS_KEY: ${{ secrets.site_aws_key }}
SITE_AWS_SECRET: ${{ secrets.site_aws_secret }}
run: scripts/publish.sh