-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 1.28 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Publish
on:
push:
branches: [ master ]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Setup Maven
uses: s4u/setup-maven-action@489441643219d2b93ee2a127b2402eb640a1b947 # v1.13.0
with:
java-version: 8
java-distribution: temurin
maven-version: 3.6.3
- name: Maven
# Additional args to work around Github Runner issue (on Azure)
# see https://github.com/actions/runner-images/issues/1499#issuecomment-689467080
run: mvn clean install -Dmaven.test.failure.ignore=true -Dmaven.wagon.httpconnectionManager.ttlSeconds=60
- name: Install AWS CLI
uses: unfor19/install-aws-cli-action@e8b481e524a99f37fbd39fdc1dcb3341ab091367 # v1.0.7
with:
version: 1
- name: Upload
env:
AWS_ACCESS_KEY_ID: ${{ secrets.BUILD_ARCHIVE_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.BUILD_ARCHIVE_SECRET_KEY }}
# use commit sha as version for update site as long as there is no proper version management for the feature and bundles
run: |
VERSION=${{ github.sha }}
aws s3 sync de.fhg.igd.equinox.test.site/target/repository/ s3://build-artifacts.wetransform.to/p2/equinox-test/$VERSION --acl public-read --delete --region eu-central-1
shell: bash