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: jobs:
dev-build: dev-build:
name: Entwicklungsumgebung
if: gitea.repository == 'gcg/gcg-website' if: gitea.repository == 'gcg/gcg-website'
runs-on: act-runner-user runs-on: act-runner-user
steps: steps:

@ -12,6 +12,7 @@ defaults:
jobs: jobs:
prod-build: prod-build:
name: Produktivumgebung
if: gitea.repository == 'gcg/gcg-website' if: gitea.repository == 'gcg/gcg-website'
runs-on: act-runner-user runs-on: act-runner-user
steps: steps:
@ -23,7 +24,7 @@ jobs:
run: | run: |
rm -rf public rm -rf public
hugo --minify --gc --baseURL "https://cantorgymnasium.de/" hugo --minify --gc --baseURL "https://cantorgymnasium.de/"
- name: deploy - name: Deploy
run: | run: |
cd public cd public
pagefind_extended --site=. pagefind_extended --site=.
@ -35,6 +36,7 @@ jobs:
chat_id: ${{ secrets.TG_CHAT_ID }} chat_id: ${{ secrets.TG_CHAT_ID }}
token: ${{ secrets.TG_TOKEN }} token: ${{ secrets.TG_TOKEN }}
test-build: test-build:
name: Testumgebung
if: gitea.repository == 'gcg/gcg-website' if: gitea.repository == 'gcg/gcg-website'
runs-on: act-runner-user runs-on: act-runner-user
steps: 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 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 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 h1:59KlTgBNiKGlPXzaQ6zn+VLYstFb4zABKwlHfzL8ADY=
github.com/hugomods/icons/vendors/mdi v0.3.2/go.mod h1:yHIDYxNoBV8RCAc4Uordp6rr4GObPrtBAimShBBFdmc= 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=