From c62acb70c6fd6f3b93c6770e31881b9c9dd878e3 Mon Sep 17 00:00:00 2001 From: aboyko Date: Thu, 20 Jul 2023 17:26:46 -0400 Subject: [PATCH] GHA: disable build on every push. Attempt at generating download page --- .github/workflows/gen-nighly-downloads.yml | 28 +++++++++++++++++++ .../snapshot-eclipse-ls-extensions-build.yml | 10 +++---- 2 files changed, 33 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/gen-nighly-downloads.yml diff --git a/.github/workflows/gen-nighly-downloads.yml b/.github/workflows/gen-nighly-downloads.yml new file mode 100644 index 000000000..2cafe79f3 --- /dev/null +++ b/.github/workflows/gen-nighly-downloads.yml @@ -0,0 +1,28 @@ +name: Wipe out temp build artifacts + +# configure manual trigger +on: + workflow_dispatch: + +jobs: + cleanup: + runs-on: ubuntu-latest + steps: + - name: Update Nightly Distro Downloads page + env: + AWS_ACCESS_KEY_ID: ${{ secrets.TOOLS_S3_ACCESS_KEY }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.TOOLS_S3_SECRET_KEY }} + AWS_DEFAULT_REGION: us-east-1 + run: | + dist_path="snapshot/STS4/nightly/dist/e4.28" + downloads_html="sts4-nightly-e4.28.html" + files=`aws s3 ls s3://dist.springsource.com/${dist_path} --recursive --exclude "*" --include "spring-tool-suite-4*.zip" --include "spring-tool-suite-4*.dmg" --include "spring-tool-suite-4*.self-extracting.jar" --include "spring-tool-suite-4*.tar.gz" --exclude "*/*"` + echo '' >> $downloads_html + cat ./$downloads_html + + diff --git a/.github/workflows/snapshot-eclipse-ls-extensions-build.yml b/.github/workflows/snapshot-eclipse-ls-extensions-build.yml index f398da152..c0307c642 100644 --- a/.github/workflows/snapshot-eclipse-ls-extensions-build.yml +++ b/.github/workflows/snapshot-eclipse-ls-extensions-build.yml @@ -4,12 +4,12 @@ concurrency: group: eclipse-ls-extension-snapshot cancel-in-progress: true -#on: -# workflow_dispatch: on: - push: - branches: - - 'main' + workflow_dispatch: +#on: +# push: +# branches: +# - 'main' jobs: eclipse-ls-extensions: