From 0f8ad8b92f3c116aeb8b636b2badf45e45fcfdb6 Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Sat, 20 Jan 2024 10:41:37 +0100 Subject: [PATCH] Chore: add actions --- .gitea/workflows/build.yaml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .gitea/workflows/build.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..64e9ca1 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,34 @@ +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + submodules: true + fetch-depth: 0 + + - name: Setup node + uses: actions/setup-node@v3 + with: + node-version: 18 + + - name: Build + run: | + npm i + npm run build + + - name: Setup Go + uses: actions/setup-go@v3 + with: + go-version: '1.21' + + - name: Deploy + uses: https://itsblue.dev/actions/codeberg-pages-deploy@v1 + if: github.ref == 'refs/heads/main' + with: + folder: ./build \ No newline at end of file