From 03a2105daad71820bc98dadf6054deb7464b5024 Mon Sep 17 00:00:00 2001 From: eyedeekay Date: Tue, 7 Jan 2025 19:44:04 -0500 Subject: [PATCH] add nightly builds/releases --- .github/workflows/nightly.yml | 79 +++++++++++++++++++++++++++++++++++ 1 file changed, 79 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..37e14f1 --- /dev/null +++ b/.github/workflows/nightly.yml @@ -0,0 +1,79 @@ +name: Release + +#on: [push] + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + with: + sparse-checkout: | + CHANGES.md + sparse-checkout-cone-mode: false + - name: sleep 15 minutes + run: | + echo "sleeping 15 minutes to wait for artifacts" + sleep 1m + echo "sleeping 14 minutes to wait for artifacts" + sleep 1m + echo "sleeping 13 minutes to wait for artifacts" + sleep 1m + echo "sleeping 12 minutes to wait for artifacts" + sleep 1m + echo "sleeping 11 minutes to wait for artifacts" + sleep 1m + echo "sleeping 10 minutes to wait for artifacts" + sleep 1m + echo "sleeping 9 minutes to wait for artifacts" + sleep 1m + echo "sleeping 8 minutes to wait for artifacts" + sleep 1m + echo "sleeping 7 minutes to wait for artifacts" + sleep 1m + echo "sleeping 6 minutes to wait for artifacts" + sleep 1m + echo "sleeping 5 minutes to wait for artifacts" + sleep 1m + echo "sleeping 4 minutes to wait for artifacts" + sleep 1m + echo "sleeping 3 minutes to wait for artifacts" + sleep 1m + echo "sleeping 2 minutes to wait for artifacts" + sleep 1m + echo "sleeping 1 minutes to wait for artifacts" + sleep 1m + - name: Download artifacts + id: download-artifact + uses: dawidd6/action-download-artifact@v3 + with: + skip_unpack: true + workflow: ant.yml + if_no_artifact_found: fail + # remove .zip file extension + - run: for f in *.zip; do unzip "$f"; rm "$f"; done + - run: echo "" | tee -a CHANGES.md + - run: echo "## Checksums" | tee -a CHANGES.md + - run: echo "" | tee -a CHANGES.md + - run: echo '```' | tee -a CHANGES.md + - run: sha256sum * | tee -a CHANGES.md + - run: echo '```' | tee -a CHANGES.md + - run: echo "" | tee -a CHANGES.md + - run: echo '```' | tee -a CHANGES.md + - run: file * | tee -a CHANGES.md + - run: echo '```' | tee -a CHANGES.md + - run: echo "" | tee -a CHANGES.md + - name: Upload artifacts + uses: ncipollo/release-action@v1 + with: + name: nightly + makeLatest: true + artifacts: "*" + bodyFile: "CHANGES.md"