Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
CRogos committed Jun 22, 2024
1 parent 2c83fb5 commit b463a1c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
# Runs on pushes targeting the default branch
push:
branches:
- main
- akaflieg-main

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -64,6 +64,21 @@ jobs:
uses: actions/upload-pages-artifact@v2
with:
path: ./public
- name: Build with Hugo
env:
# For maximum backward compatibility with Hugo modules
HUGO_ENVIRONMENT: production
HUGO_ENV: production
run: |
cd subpages/crogos.github.io
hugo \
--gc \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/staging"
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./public/staging

# Deployment job
deploy:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Generate thumbnails
on:
push:
branches:
- images
- akaflieg-main
paths:
- 'content-img/**/*' # Only run on this path changes
permissions:
Expand Down

0 comments on commit b463a1c

Please sign in to comment.