-
Notifications
You must be signed in to change notification settings - Fork 66
47 lines (43 loc) · 1.15 KB
/
publish.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
name: Publish
on:
push:
branches:
- master
jobs:
publish-web:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup HUGO
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.128.1'
- name: Render
working-directory: 'site'
run: hugo
- name: Deploy
working-directory: 'site'
run: hugo deploy --invalidateCDN
env:
AWS_ACCESS_KEY_ID: '${{ secrets.AWS_ACCESS_KEY_ID }}'
AWS_SECRET_ACCESS_KEY: '${{ secrets.AWS_SECRET_ACCESS_KEY }}'
publish-data:
runs-on: ubuntu-latest
env:
BUCKET: ${{ secrets.DATA_API_BUCKET }}
DISTRIBUTION: ${{ secrets.DATA_API_DISTRIBUTION }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
- name: Build and Run with Maven
run: |
cd dataapi
mvn -B clean compile exec:java --no-transfer-progress