diff --git a/.gitea/workflows/dev.yaml b/.gitea/workflows/dev.yaml index 6643ddd9..c46cf968 100644 --- a/.gitea/workflows/dev.yaml +++ b/.gitea/workflows/dev.yaml @@ -10,6 +10,7 @@ defaults: jobs: dev-build: + name: Entwicklungsumgebung if: gitea.repository == 'gcg/gcg-website' runs-on: act-runner-user steps: diff --git a/.gitea/workflows/prod.yaml b/.gitea/workflows/prod.yaml index 032cbb6a..53799d30 100644 --- a/.gitea/workflows/prod.yaml +++ b/.gitea/workflows/prod.yaml @@ -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: diff --git a/.gitea/workflows/pull_request.yml b/.gitea/workflows/pull_request.yml new file mode 100644 index 00000000..2bbf530d --- /dev/null +++ b/.gitea/workflows/pull_request.yml @@ -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 }} diff --git a/go.mod b/go.mod index 3f87ac9e..331e6573 100644 --- a/go.mod +++ b/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 diff --git a/go.sum b/go.sum index a4ae5f91..d4889d47 100644 --- a/go.sum +++ b/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=