This repository has been archived by the owner on Aug 19, 2024. It is now read-only.
-
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.
Merge pull request #1 from MeasureAuthoringTool/develop
MAT-5591: Adding repo publishing
- Loading branch information
Showing
18 changed files
with
94 additions
and
212 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,42 @@ | ||
name: CI | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'adopt' | ||
- name: Build with Maven | ||
run: mvn --batch-mode --update-snapshots verify | ||
|
||
publish-snapshot: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
if: github.ref == 'refs/heads/develop' | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'adopt' | ||
java-version: '17' | ||
|
||
- name: Extract project version | ||
run: echo ::set-output name=version::$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec) | ||
id: project | ||
|
||
# publish snapshot iff the project version in pom.xml contains '-SNAPSHOT' | ||
- name: Publish SNAPSHOT version to GitHub Packages | ||
if: contains(steps.project.outputs.version, '-SNAPSHOT') | ||
run: mvn -B --no-transfer-progress deploy -DskipTests | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,37 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 16 | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: 'adopt' | ||
java-version: '16' | ||
|
||
- name: Bump version and push tag | ||
id: tag_version | ||
uses: mathieudutour/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Create a GitHub release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
tag: ${{ steps.tag_version.outputs.new_tag }} | ||
name: Release ${{ steps.tag_version.outputs.new_tag }} | ||
body: | | ||
### Things that changed in this release(Changelog) | ||
${{ steps.tag_version.outputs.changelog }} | ||
- name: Publish release to GitHub Packages | ||
run: mvn -B --no-transfer-progress deploy -DskipTests | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,14 @@ | ||
target/ | ||
### IntelliJ IDEA ### | ||
.idea | ||
*.iws | ||
*.iml | ||
*.ipr | ||
.classpath | ||
.project | ||
.settings | ||
|
||
|
||
### macOs files | ||
.DS_Store | ||
src/.DS_Store |
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
7 changes: 0 additions & 7 deletions
7
target/classes/META-INF/maven/gov.cms.madie/serviceUtil/pom.properties
This file was deleted.
Oops, something went wrong.
132 changes: 0 additions & 132 deletions
132
target/classes/META-INF/maven/gov.cms.madie/serviceUtil/pom.xml
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file removed
BIN
-506 Bytes
target/classes/gov/cms/madie/serviceUtil/exceptions/InternalServerException.class
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst
This file was deleted.
Oops, something went wrong.
Binary file not shown.
56 changes: 0 additions & 56 deletions
56
target/surefire-reports/TEST-gov.cms.madie.serviceUtil.AppTest.xml
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
target/surefire-reports/gov.cms.madie.serviceUtil.AppTest.txt
This file was deleted.
Oops, something went wrong.
Binary file not shown.