Skip to content

Update Arch-Update's introduction in index #38

Update Arch-Update's introduction in index

Update Arch-Update's introduction in index #38

Workflow file for this run

name: CD
on: pull_request
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v4
with:
token: ${{ secrets.BUILD_WEBSITE_TOKEN }}
ref: ${{ github.event.pull_request.head.ref }}
- name: Install packages
run: sudo snap install hugo
- 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)" ]; then
git add .
git commit -m "Automated build"
git push
else
echo "No changes to commit"
fi