Skip to content

Commit b463a1c

Browse files
committed
Update workflows
1 parent 2c83fb5 commit b463a1c

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.github/workflows/hugo.yaml

+16-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
# Runs on pushes targeting the default branch
66
push:
77
branches:
8-
- main
8+
- akaflieg-main
99

1010
# Allows you to run this workflow manually from the Actions tab
1111
workflow_dispatch:
@@ -64,6 +64,21 @@ jobs:
6464
uses: actions/upload-pages-artifact@v2
6565
with:
6666
path: ./public
67+
- name: Build with Hugo
68+
env:
69+
# For maximum backward compatibility with Hugo modules
70+
HUGO_ENVIRONMENT: production
71+
HUGO_ENV: production
72+
run: |
73+
cd subpages/crogos.github.io
74+
hugo \
75+
--gc \
76+
--minify \
77+
--baseURL "${{ steps.pages.outputs.base_url }}/staging"
78+
- name: Upload artifact
79+
uses: actions/upload-pages-artifact@v2
80+
with:
81+
path: ./public/staging
6782

6883
# Deployment job
6984
deploy:

.github/workflows/images.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Generate thumbnails
22
on:
33
push:
44
branches:
5-
- images
5+
- akaflieg-main
66
paths:
77
- 'content-img/**/*' # Only run on this path changes
88
permissions:

0 commit comments

Comments
 (0)