Sync dev with master #271

Merged
GCG.Admin (Automatisiert) merged 6 commits from master into dev 2024-07-07 11:21:31 +02:00
5 changed files with 27 additions and 2 deletions

@ -10,6 +10,7 @@ defaults:
jobs:
dev-build:
name: Entwicklungsumgebung
if: gitea.repository == 'gcg/gcg-website'
runs-on: act-runner-user
steps:

@ -12,6 +12,7 @@ defaults:
jobs:
prod-build:
name: Produktivumgebung
if: gitea.repository == 'gcg/gcg-website'
runs-on: act-runner-user
steps:
@ -23,7 +24,7 @@ jobs:
run: |
rm -rf public
hugo --minify --gc --baseURL "https://cantorgymnasium.de/"
- name: deploy
- name: Deploy
run: |
cd public
pagefind_extended --site=.
@ -35,6 +36,7 @@ jobs:
chat_id: ${{ secrets.TG_CHAT_ID }}
token: ${{ secrets.TG_TOKEN }}
test-build:
name: Testumgebung
if: gitea.repository == 'gcg/gcg-website'
runs-on: act-runner-user
steps:

@ -0,0 +1,21 @@
name: Website Pull Request
on:
pull_request:
jobs:
test-build:
if: gitea.repository == 'gcg/gcg-website'
runs-on: act-runner-user
steps:
- name: Checkout
uses: https://github.com/actions/checkout@v4
- name: Build
run: |
hugo --minify --gc --baseURL "https://test.cantorgymnasium.de/" --buildDrafts --buildFuture -d test
- name: Notification
uses: actions/telegram-action@main
if: always()
with:
chat_id: ${{ secrets.TG_CHAT_ID }}
token: ${{ secrets.TG_TOKEN }}

2
go.mod

@ -2,4 +2,4 @@ module git.cantorgymnasium.de/gcg/gcg-website
go 1.19
require github.com/hugomods/icons/vendors/mdi v0.3.2 // indirect
require github.com/hugomods/icons/vendors/mdi v0.3.6

1
go.sum

@ -2,3 +2,4 @@ github.com/hugomods/icons v0.6.0 h1:G6RU93okhPPRDh/jqcew9gwkcYpSpg0rCBv4S6yUAFw=
github.com/hugomods/icons v0.6.0/go.mod h1:cIkSvK6W0q6N4U6n9KGz+QfRWQXAW0INd+1P31gPNGg=
github.com/hugomods/icons/vendors/mdi v0.3.2 h1:59KlTgBNiKGlPXzaQ6zn+VLYstFb4zABKwlHfzL8ADY=
github.com/hugomods/icons/vendors/mdi v0.3.2/go.mod h1:yHIDYxNoBV8RCAc4Uordp6rr4GObPrtBAimShBBFdmc=
github.com/hugomods/icons/vendors/mdi v0.3.6/go.mod h1:XDQZ9k0Xmxy6Xh7idvjUkfb5DhDJmQPHCavlRHymSg8=