Sync dev with master #253

Manually merged
Denys Konovalov merged 157 commits from master into dev 2023-12-24 14:26:06 +01:00
Showing only changes of commit 505949680f - Show all commits

@ -1,36 +1,37 @@
name: website-dev name: website-dev
on: on:
push: push:
branches: branches:
- dev - dev
defaults: defaults:
run: run:
working-directory: /opt/data/actions/gcg-website-dev working-directory: /opt/data/actions/gcg-website-dev
jobs: jobs:
dev-build: dev-build:
if: gitea.repository == 'gcg/gcg-website' if: gitea.repository == 'gcg/gcg-website'
runs-on: act-runner-user runs-on: act-runner-user
timeout-minutes: 5 timeout-minutes: 5
steps: steps:
- name: pull - name: pull
run: | run: |
git pull git config --global --add safe.directory /opt/data/actions/gcg-website-dev
git reset --hard origin/dev git pull
- name: build git reset --hard origin/dev
run: | - name: build
rm -rf dev run: |
hugo --minify --gc --baseURL "https://dev.cantorgymnasium.de/" --buildDrafts --buildFuture -d dev rm -rf dev
- name: deploy hugo --minify --gc --baseURL "https://dev.cantorgymnasium.de/" --buildDrafts --buildFuture -d dev
run: | - name: deploy
cd dev run: |
pagefind_extended --site=. cd dev
rsync -azr --delete ./ /opt/data/webdata/gcg-website-dev/ pagefind_extended --site=.
- name: notification rsync -azr --delete ./ /opt/data/webdata/gcg-website-dev/
uses: actions/telegram-action@main - name: notification
if: always() uses: actions/telegram-action@main
with: if: always()
chat_id: ${{ secrets.TG_CHAT_ID }} with:
token: ${{ secrets.TG_TOKEN }} chat_id: ${{ secrets.TG_CHAT_ID }}
token: ${{ secrets.TG_TOKEN }}