-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add workflow for building all branches
- Loading branch information
Showing
3 changed files
with
73 additions
and
45 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,39 @@ | ||
# This workflow builds the plugin, feature and update site and pushes the update | ||
# site to a dedicated branch on the Githu repo. | ||
|
||
name: Build Branch | ||
|
||
on: | ||
push: | ||
branches: | ||
- /refs/heads/* | ||
- !master | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
|
||
steps: | ||
- name: Fetch branch name | ||
run: | ||
echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | ||
id: fetch_branch | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 1.11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.11 | ||
- name: Build with Maven | ||
run: mvn -B package --file pom.xml | ||
- name: Push Updatesite | ||
uses: ingomohr/push-p2-repo-action@v1 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
path-to-p2-repo-created-by-maven: 'releng-updatesite/target' | ||
path-to-p2-repo-target: 'updatesite' | ||
commit-message: 'add new updatesite' | ||
target-branch-name: builds-${{ steps.fetch_branch.outputs.branch }} | ||
|
||
|
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,34 @@ | ||
# This workflow builds the plugin, feature and update site and pushes the update | ||
# site to a dedicated branch called "updatesite" on the Githu repo. | ||
|
||
name: Build Master | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 1.11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.11 | ||
- name: Build with Maven | ||
run: mvn -B package --file pom.xml | ||
- name: Push Updatesite | ||
uses: ingomohr/push-p2-repo-action@v1 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
path-to-p2-repo-created-by-maven: 'releng-updatesite/target' | ||
path-to-p2-repo-target: 'updatesite' | ||
commit-message: 'add new updatesite' | ||
target-branch-name: 'updatesite' | ||
|
||
|
This file was deleted.
Oops, something went wrong.