From e0299257dcb69a84d84cb5a884646904a68d97e8 Mon Sep 17 00:00:00 2001 From: hoernschen Date: Fri, 20 Oct 2023 20:53:21 +0000 Subject: [PATCH] .forgejo/workflows/build.yaml aktualisiert --- .forgejo/workflows/build.yaml | 19 +++++++++++++++++++ .forgejo/workflows/demo.yaml | 6 ------ 2 files changed, 19 insertions(+), 6 deletions(-) create mode 100644 .forgejo/workflows/build.yaml delete mode 100644 .forgejo/workflows/demo.yaml diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml new file mode 100644 index 0000000..c9b692e --- /dev/null +++ b/.forgejo/workflows/build.yaml @@ -0,0 +1,19 @@ +name: build-to-pages +on: [push] +branches: [main] +jobs: + build: + runs-on: docker + image: klakegg/hugo + steps: + - uses: actions/checkout@v3 + - run: hugo --minify + push: + runs-on: docker + steps: + - run: | + git config user.name "forgejo-actions" + git config user.email "" + git add . + git commit -m "generated" + git push \ No newline at end of file diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml deleted file mode 100644 index 21280bd..0000000 --- a/.forgejo/workflows/demo.yaml +++ /dev/null @@ -1,6 +0,0 @@ -on: [push] -jobs: - test: - runs-on: docker - steps: - - run: echo All Good \ No newline at end of file