Compare commits
6
Commits
main
...
acceef5a17
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
acceef5a17 | ||
|
|
64c086006c | ||
|
|
284b9f62a5 | ||
|
|
825c13f591 | ||
|
|
33ac8cd68f | ||
|
|
002c74a773 |
@@ -0,0 +1,37 @@
|
|||||||
|
name: Website
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [dev]
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: /opt/runner/workdir/fte-homepage-dev
|
||||||
|
|
||||||
|
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/dev.ftecke.de/
|
||||||
|
# - name: Notification
|
||||||
|
# uses: actions/telegram-action@main
|
||||||
|
# if: always()
|
||||||
|
# with:
|
||||||
|
# chat_id: ${{ secrets.TG_CHAT_ID }}
|
||||||
|
# token: ${{ secrets.TG_TOKEN }}
|
||||||
Vendored
+3
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"workbench.startupEditor": "none"
|
||||||
|
}
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 2.6 MiB |
Binary file not shown.
|
Before Width: | Height: | Size: 925 KiB |
Reference in New Issue
Block a user