Skip to content

Commit

Permalink
ci: add GitHub Actions workflows for build and publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
stempler committed Mar 12, 2024
1 parent 495e68b commit 06c9cef
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/check.yml
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'
36 changes: 36 additions & 0 deletions .github/workflows/publish.yml
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
1 change: 1 addition & 0 deletions version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.2.0.20240312

0 comments on commit 06c9cef

Please sign in to comment.