Aggregate LS Extensions Update Sites #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Aggregate LS Extensions Update Sites | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: The suffix of the p2 repo URL in S3 (i.e. 2023-08-01) | |
required: true | |
type: string | |
jobs: | |
update-aggregate-update-sites: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 | |
with: | |
sparse-checkout: | | |
.github | |
- name: Timestamp | |
id: timestamp | |
run: echo "date=`echo $(($(date +%s%N) / 1000000))`" >> $GITHUB_OUTPUT | |
- name: Generate and Upload Aggregate Update Sites Data | |
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 | |
CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }} | |
CLOUDFLARE_CACHE_TOKEN: ${{ secrets.CLOUDFLARE_CACHE_TOKEN }} | |
run: | | |
site_url="https://download.springsource.com/release/TOOLS/sts4-language-server-integrations/${{ inputs.version }}" | |
${{ github.workspace }}/.github/scripts/generate-composite-site-files.sh ${{ steps.timestamp.outputs.date }} $site_url | |
cat ./compositeArtifacts.xml | |
cat ./compositeContent.xml | |
aws s3 cp ./compositeArtifacts.xml s3://dist.springsource.com/release/TOOLS/sts4-language-server-integrations/ --acl public-read | |
aws s3 cp ./compositeContent.xml s3://dist.springsource.com/release/TOOLS/sts4-language-server-integrations/ --acl public-read | |
aws s3 cp ./p2.index s3://dist.springsource.com/release/TOOLS/sts4-language-server-integrations/ --acl public-read | |
${{ github.workspace }}/.github/scripts/clear-s3-caches.sh release/TOOLS/sts4-language-server-integrations |