Skip to content

Commit

Permalink
ci: publish update site with current versions
Browse files Browse the repository at this point in the history
  • Loading branch information
stempler committed Feb 3, 2024
1 parent e241f32 commit 0e923d9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/publish-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,22 @@ jobs:
ORG_GRADLE_PROJECT_wetfArtifactoryUser: ${{ secrets.WETF_ARTIFACTORY_USER }}
ORG_GRADLE_PROJECT_wetfArtifactoryPassword: ${{ secrets.WETF_ARTIFACTORY_PASSWORD }}

- name: Create update site
run: ./gradlew updateSite # Note: requires jars and publishJarsToMavenLocal to have run before

- name: Install AWS CLI
uses: unfor19/install-aws-cli-action@v1
with:
version: 1

- name: Publish update site
env:
AWS_ACCESS_KEY_ID: ${{ secrets.BUILD_ARCHIVE_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.BUILD_ARCHIVE_SECRET_KEY }}
run: |
aws s3 sync updatesite/build/updatesite s3://build-artifacts.wetransform.to/p2/offline-resources/current --acl public-read --delete --region eu-central-1
shell: bash

- name: Notify slack on failure
# https://github.com/marketplace/actions/slack-notify-build
uses: voxmedia/github-action-slack-notify-build@v1
Expand Down

0 comments on commit 0e923d9

Please sign in to comment.