From 12e83fe6d25ccf5f58b71c88f7d4b7d3fc8dc8d0 Mon Sep 17 00:00:00 2001 From: druppelt <44848632+druppelt@users.noreply.github.com> Date: Thu, 12 Sep 2024 02:50:01 +0200 Subject: [PATCH] add workflow for nightly. Doesn't work yet. --- .github/workflows/nightly.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/nightly.yml diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml new file mode 100644 index 0000000..1ae9359 --- /dev/null +++ b/.github/workflows/nightly.yml @@ -0,0 +1,28 @@ +--- +name: nightly +on: +# currently a manual snapshot release build instead of a nightly, +# as I haven't figured out yet how to prevent spamming the releases with no changes at all. +# schedule: + # * is a special character in YAML, so you have to quote this string + # doing builds Tue-Sat, so we have changes from Fri + # available already on Sat +# - cron: '0 0 * * *' + workflow_dispatch: +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-go@v5 + with: + go-version: 1.22 + - name: Run goreleaser + uses: goreleaser/goreleaser-action@v6 + with: + version: latest + args: release --snapshot --clean + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file