Sync dev with master #269
@ -1,9 +1,8 @@
|
|||||||
name: website-dev
|
name: Website Dev
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches: [dev]
|
||||||
- dev
|
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
@ -13,22 +12,21 @@ 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
|
|
||||||
steps:
|
steps:
|
||||||
- name: pull
|
- name: Pull
|
||||||
run: |
|
run: |
|
||||||
git pull
|
git pull
|
||||||
git reset --hard origin/dev
|
git reset --hard origin/dev
|
||||||
- name: build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
rm -rf dev
|
rm -rf dev
|
||||||
hugo --minify --gc --baseURL "https://dev.cantorgymnasium.de/" --buildDrafts --buildFuture -d dev
|
hugo --minify --gc --baseURL "https://dev.cantorgymnasium.de/" --buildDrafts --buildFuture -d dev
|
||||||
- name: deploy
|
- name: Deploy
|
||||||
run: |
|
run: |
|
||||||
cd dev
|
cd dev
|
||||||
pagefind_extended --site=.
|
pagefind_extended --site=.
|
||||||
rsync -azr --delete ./ /opt/data/webdata/gcg-website-dev/
|
rsync -azr --delete ./ /opt/data/webdata/gcg-website-dev/
|
||||||
- name: notification
|
- name: Notification
|
||||||
uses: actions/telegram-action@main
|
uses: actions/telegram-action@main
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user