.gitea/workflows/build.yaml aktualisiert
This commit is contained in:
parent
cc02a36a45
commit
993cadbb50
@ -1,24 +1,18 @@
|
||||
name: website
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
concurrency:
|
||||
group: ${{ gitea.workflow }}-${{ gitea.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
prod-build:
|
||||
runs-on: act-runner
|
||||
timeout-minutes: 5
|
||||
steps:
|
||||
- name: clone
|
||||
uses: actions/checkout@v4
|
||||
- name: build
|
||||
run: hugo --minify --gc --baseURL "https://denyskon.de/"
|
||||
- name: deploy
|
||||
run: |
|
||||
cd public
|
||||
rsync -azr --delete ./ /var/www/html/
|
||||
name: Website Prod
|
||||
|
||||
on:
|
||||
push: [main]
|
||||
|
||||
jobs:
|
||||
prod-build:
|
||||
runs-on: act-runner
|
||||
timeout-minutes: 5
|
||||
steps:
|
||||
- name: clone
|
||||
uses: actions/checkout@v4
|
||||
- name: build
|
||||
run: hugo --minify --gc --baseURL "https://denyskon.de/"
|
||||
- name: deploy
|
||||
run: |
|
||||
cd public
|
||||
rsync -azr --delete ./ /opt/data/webdata/
|
Loading…
x
Reference in New Issue
Block a user