diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 86901c0..5713574 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -1,6 +1,26 @@ -on: [push] +on: + push: + branches: + - main + jobs: - test: + deploy: runs-on: docker steps: - - run: echo All good! Show Green \ No newline at end of file + - uses: actions/checkout@v4 + with: + submodules: true + fetch-depth: 0 + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version: '1.22.4' + - name: Setup Hugo + uses: https://github.com/peaceiris/actions-hugo@v3 + with: + hugo-version: 'latest' + - name: build + run: hugo --minify + - name: push public + run: | + cp -rf public/* /sitestatic \ No newline at end of file