Skip to content

Commit

Permalink
Update deployment for gohugo
Browse files Browse the repository at this point in the history
  • Loading branch information
WhyNotHugo committed May 16, 2024
1 parent c941a7e commit 656b983
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy Jekyll with GitHub Pages dependencies preinstalled
name: Deploy site with GitHub Pages

on:
push:
Expand All @@ -21,22 +21,18 @@ concurrency:
jobs:
# Build job
build:
runs-on: ubuntu-latest
# Hint: 'latest' == 22.04. Somebody forgot to update the alias.
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v3
with:
python-version: '3.10'
- run: pip install -U pip
- run: pip install -r requirements.txt
- run: lektor build --output-path /tmp/lektor/
- name: Setup Pages
uses: actions/configure-pages@v1
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
- run: sudo apt install hugo
- run: hugo
- uses: actions/configure-pages@v1
- uses: actions/upload-pages-artifact@v1
with:
path: /tmp/lektor/
path: public/

# Deployment job
deploy:
Expand Down

0 comments on commit 656b983

Please sign in to comment.