Skip to content

Commit

Permalink
add GH actions for automatic deploy #221
Browse files Browse the repository at this point in the history
Signed-off-by: Andre Bossert <anb0s@anbos.de>
  • Loading branch information
anb0s committed Mar 19, 2022
1 parent 48715c5 commit 576f39a
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,25 @@ on:
branches: [ main ]

jobs:
build:

build-compatibility:
strategy:
fail-fast: false
matrix:
target-platform: ['Eclipse-4.8', 'Eclipse-2021-09', 'Eclipse-2021-12', 'Eclipse-2022-03']
target-platform: ['Eclipse-4.8', 'Eclipse-2021-09', 'Eclipse-2022-03']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: 'Build for platform: ${{ matrix.target-platform }}'
run: 'mvn -Dtarget.platform=${{ matrix.target-platform }} -Dsite.dir=testing clean verify'

build-default:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -24,5 +38,11 @@ jobs:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -Dtarget.platform=${{ matrix.target-platform }} clean verify
- name: 'Build for platform: default'
run: 'mvn -Dsite.dir=testing clean verify'
- name: 'Deploy for PR${{ github.event.pull_request.number }}'
if: github.event_name == 'pull_request'
uses: actions/upload-artifact@v2
with:
name: EasyShell-update-site-PR${{ github.event.pull_request.number }}
path: site/target/repository

0 comments on commit 576f39a

Please sign in to comment.