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 727cfed commit 140d42d
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Deploy Jekyll with GitHub Pages dependencies preinstalled
name: Deploy site with GitHub Pages

on:
push:
branches: ["main"]

pull_request:
workflow_dispatch:
# TODO: should build for PRs, but only deploy for `main`.

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
Expand All @@ -23,20 +24,15 @@ jobs:
build:
runs-on: ubuntu-latest
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 140d42d

Please sign in to comment.