diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml new file mode 100644 index 0000000..6f73a5b --- /dev/null +++ b/.forgejo/workflows/build.yml @@ -0,0 +1,24 @@ +on: [push] +jobs: + build: + runs-on: ubuntu-latest + steps: + - run: | + mkdir ~/.ssh + chmod 700 ~/.ssh + echo "${{ secrets.ALTAIR_SSH_KEY }}" > ~/.ssh/id_ed25519 + chmod 600 ~/.ssh/id_ed25519 + ssh-keyscan -p 999 tehga.me >> ~/.ssh/known_hosts + ssh-keyscan -p 999 doradus.tehga.me >> ~/.ssh/known_hosts + - run: git clone --depth 1 ssh://gitea@tehga.me:999/wasp/fj.git --branch main --single-branch /workdir + - uses: actions/setup-go@v5 + with: + go-version-file: '/workdir/go.mod' + check-latest: true + cache-dependency-path: "/workdir/**/*.sum" + - run: go build + working-directory: /workdir + - uses: actions/upload-artifact@v3 + with: + name: fj + path: /workdir/fj