From c701ba66af0abc3b1374e7f300054da511e2d7d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6ran=20Karl?= <3951388+JoeKar@users.noreply.github.com> Date: Sun, 9 Jun 2024 12:20:47 +0200 Subject: [PATCH] nightly: Use GitHub Actions for scheduled builds and artifact uploads --- .github/workflows/nightly.yaml | 42 ++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/nightly.yaml diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml new file mode 100644 index 00000000..2ca663e8 --- /dev/null +++ b/.github/workflows/nightly.yaml @@ -0,0 +1,42 @@ +name: Nightly builds +on: + schedule: + - cron: '0 0 * * *' +jobs: + nightly: + strategy: + matrix: + go-version: [1.19.x] + os: [ubuntu-latest] + runs-on: ${{ matrix.os }} + steps: + - name: Setup + uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go-version }} + + - name: Checkout + uses: actions/checkout@v4 + with: + ref: master + + - name: Build + run: tools/cross-compile.sh + + - name: Tag + uses: rickstaa/action-create-tag@v1 + with: + tag: nightly + force_push_tag: true + message: "Pre-release nightly" + + - name: Publish + uses: softprops/action-gh-release@v2 + with: + name: nightly + tag_name: nightly + files: binaries/* + prerelease: true + + - name: Cleanup + run: rm -rf binaries