Skip to content

Commit

Permalink
Added automated deployment of Hugo
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Bernier committed Apr 23, 2024
1 parent b9ce24c commit faefd6f
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/deploy-hugo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy Hugo Site

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'

- name: Build
run: hugo --minify

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
6 changes: 5 additions & 1 deletion .github/workflows/update-ics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ on:
workflow_dispatch:
schedule:
- cron: '0 */4 * * *' # Adjust the schedule as necessary

workflow_run:
workflows: ["Deploy Hugo Site"]
types:
- completed

jobs:
update-and-push:
runs-on: ubuntu-latest
Expand Down

0 comments on commit faefd6f

Please sign in to comment.