add dev workflow
All checks were successful
Website / Website veröffentlichen (push) Successful in 7s
All checks were successful
Website / Website veröffentlichen (push) Successful in 7s
This commit is contained in:
37
.gitea/workflows/dev.yml
Normal file
37
.gitea/workflows/dev.yml
Normal file
@@ -0,0 +1,37 @@
|
||||
name: Website
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [dev]
|
||||
|
||||
defaults:
|
||||
run:
|
||||
working-directory: /opt/runner/workdir/FTE-Homepage
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
name: Website veröffentlichen
|
||||
if: gitea.repository == 'fte/FTE-Homepage'
|
||||
runs-on: act-runner
|
||||
steps:
|
||||
- name: Pull
|
||||
run: |
|
||||
git fetch --all
|
||||
git reset --hard origin/dev
|
||||
- name: NPM install
|
||||
run: |
|
||||
npm i
|
||||
- name: Build
|
||||
run: |
|
||||
rm -rf public
|
||||
hugo --minify --gc --baseURL="https://dev.ftecke.de"
|
||||
- name: Deploy
|
||||
run: |
|
||||
cd public
|
||||
rsync -azr --delete ./ /var/www/html/www.ftecke.de/
|
||||
# - name: Notification
|
||||
# uses: actions/telegram-action@main
|
||||
# if: always()
|
||||
# with:
|
||||
# chat_id: ${{ secrets.TG_CHAT_ID }}
|
||||
# token: ${{ secrets.TG_TOKEN }}
|
||||
Reference in New Issue
Block a user