Skip to content

ci: add/update workflow for autosquash on PRs #15

ci: add/update workflow for autosquash on PRs

ci: add/update workflow for autosquash on PRs #15

Workflow file for this run

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