GHA: disable build on every push. Attempt at generating download page
This commit is contained in:
28
.github/workflows/gen-nighly-downloads.yml
vendored
Normal file
28
.github/workflows/gen-nighly-downloads.yml
vendored
Normal file
@@ -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 '<ul>' >> $downloads_html
|
||||
for file in $files
|
||||
do
|
||||
echo ' <li><a href="https://download.springsource.com/snapshot/STS4/nightly/dist/e4.28/'${file}'">${file}</li>' >> $downloads_html
|
||||
done
|
||||
echo '</ul>' >> $downloads_html
|
||||
cat ./$downloads_html
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user