Skip to content

New article: Maintaining and building Alpine packages from Arch Linux #176

New article: Maintaining and building Alpine packages from Arch Linux

New article: Maintaining and building Alpine packages from Arch Linux #176

Workflow file for this run

name: CD
on: pull_request
jobs:
Build:
runs-on:
- self-hosted
- CI-CD
steps:
- name: Clone repo
uses: actions/checkout@v4
with:
token: ${{ secrets.BUILD_WEBSITE_TOKEN }}
ref: ${{ github.event.pull_request.head.ref }}
- name: Init theme submodule
run: git submodule update --init
- name: Copy custom CSS in theme
run: cp custom.css themes/anatole/assets/css/custom.css
- name: Build website
run: rm -rf public && hugo
- name: Commit automated build
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
if [ "$(git status --porcelain public)" ]; then
git add public
git commit -m "Automated build"
git push
else
echo "No changes to commit"
fi