use working directory path
This commit is contained in:
parent
90fdf9e4de
commit
ab0bbb11a9
@ -5,6 +5,10 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: /opt/data/actions/schuelerzeitung-main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
prod-build:
|
prod-build:
|
||||||
if: gitea.repository == 'gcg/schuelerzeitung'
|
if: gitea.repository == 'gcg/schuelerzeitung'
|
||||||
@ -13,17 +17,15 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: pull
|
- name: pull
|
||||||
run: |
|
run: |
|
||||||
cd /opt/data/actions/schuelerzeitung-main
|
|
||||||
git fetch --all
|
git fetch --all
|
||||||
git reset --hard origin/main
|
git reset --hard origin/main
|
||||||
- name: build
|
- name: build
|
||||||
run: |
|
run: |
|
||||||
cd /opt/data/actions/schuelerzeitung-main
|
|
||||||
rm -rf public
|
rm -rf public
|
||||||
hugo --minify --gc --baseURL "https://schuelerzeitung-gcg.de/"
|
hugo --minify --gc --baseURL "https://schuelerzeitung-gcg.de/"
|
||||||
- name: deploy
|
- name: deploy
|
||||||
run: |
|
run: |
|
||||||
cd /opt/data/actions/schuelerzeitung-main/public
|
cd public
|
||||||
rsync -azr --delete ./ /opt/data/webdata/schuelerzeitung/
|
rsync -azr --delete ./ /opt/data/webdata/schuelerzeitung/
|
||||||
- name: notification
|
- name: notification
|
||||||
uses: actions/telegram-action@main
|
uses: actions/telegram-action@main
|
||||||
@ -38,15 +40,13 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: pull
|
- name: pull
|
||||||
run: |
|
run: |
|
||||||
cd /opt/data/actions/schuelerzeitung-main
|
|
||||||
git fetch --all
|
git fetch --all
|
||||||
git reset --hard origin/main
|
git reset --hard origin/main
|
||||||
- name: build
|
- name: build
|
||||||
run: |
|
run: |
|
||||||
cd /opt/data/actions/schuelerzeitung-main
|
|
||||||
rm -rf test
|
rm -rf test
|
||||||
hugo --minify --gc --baseURL "https://test.schuelerzeitung-gcg.de/" --buildDrafts --buildFuture -d test
|
hugo --minify --gc --baseURL "https://test.schuelerzeitung-gcg.de/" --buildDrafts --buildFuture -d test
|
||||||
- name: deploy
|
- name: deploy
|
||||||
run: |
|
run: |
|
||||||
cd /opt/data/actions/schuelerzeitung-main/test
|
cd test
|
||||||
rsync -azr --delete ./ /opt/data/webdata/schuelerzeitung-test/
|
rsync -azr --delete ./ /opt/data/webdata/schuelerzeitung-test/
|
Loading…
x
Reference in New Issue
Block a user