-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add GitHub Actions workflows for build and publishing
- Loading branch information
Showing
3 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Check | ||
|
||
on: | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
- name: Setup Maven | ||
uses: s4u/[email protected] | ||
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 | ||
|
||
# https://github.com/marketplace/actions/junit-report-action | ||
# Note: Currently no tests | ||
# - name: Publish Test Report | ||
# uses: mikepenz/action-junit-report@v3 | ||
# if: always() # always run even if the previous step fails | ||
# with: | ||
# report_paths: '*/target/surefire-reports/*.xml' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Publish | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Setup Maven | ||
uses: s4u/[email protected] | ||
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@v1 | ||
with: | ||
version: 1 | ||
|
||
- name: Upload | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.BUILD_ARCHIVE_ACCESS_KEY }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.BUILD_ARCHIVE_SECRET_KEY }} | ||
run: | | ||
VERSION=$(cat version.txt | head -1) | ||
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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.2.0.20240312 |