1
0
weblog/.github/workflows/weblog.yaml
JackCarterSmith bb8b93db47
All checks were successful
Build Jekyll weblog / build (push) Successful in 3s
Add clean step to workflow
2023-09-21 15:33:18 +02:00

29 lines
758 B
YAML

name: Build Jekyll weblog
on:
push:
branches: [ master ]
env:
REPO_DIR: ${{ gitea.repository }}
jobs:
build:
runs-on: [ubuntu]
steps:
- run: echo "Job triggered by a ${{ gitea.event_name }} event."
- name: Checkout 📥
uses: actions/checkout@v3
with:
ref: master
lfs: false
token: ${{ gitea.token }}
fetch: 1
- name: Clean 🧹
run: bundle exec --no-color jekyll clean -d $OUT_DIR
env:
OUT_DIR: ${{ secrets.PUB_DIR }}
- run: echo "Trying to build commit ${{ gitea.ref }} from repository."
- name: Build ⚙️
run: bundle exec --no-color jekyll build -d $OUT_DIR
env:
OUT_DIR: ${{ secrets.PUB_DIR }}