-
Notifications
You must be signed in to change notification settings - Fork 3
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 #130 from assimbly/workflows
Added new release workflow & deleted old publish action
- Loading branch information
Showing
2 changed files
with
70 additions
and
60 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,70 @@ | ||
name: New Release Workflow | ||
|
||
on: | ||
|
||
release: | ||
types: [ released ] | ||
|
||
jobs: | ||
|
||
publish_prod_packages: | ||
|
||
name: Publish Snapshot Packages | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: 'master' | ||
|
||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '11' | ||
distribution: 'temurin' | ||
|
||
- name: Update to snapshot version | ||
env: | ||
VERSION: ${{ github.ref_name }} | ||
run: | | ||
echo "Updating to version: ${VERSION}" | ||
mvn versions:set -DgenerateBackupPoms=false -DnewVersion=${VERSION} | ||
mvn versions:set-property -Dproperty=assimbly.version -DnewVersion=${VERSION} | ||
- name: Publish package | ||
run: mvn --batch-mode deploy | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
publish_snapshot_packages: | ||
|
||
name: Publish Snapshot Packages | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: 'develop' | ||
|
||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '11' | ||
distribution: 'temurin' | ||
|
||
- name: Update to snapshot version | ||
env: | ||
SNAPSHOT_VERSION: ${{ github.ref_name }}-SNAPSHOT | ||
run: | | ||
echo "Updating to version: ${SNAPSHOT_VERSION}" | ||
mvn versions:set -DgenerateBackupPoms=false -DnewVersion=${SNAPSHOT_VERSION} | ||
mvn versions:set-property -Dproperty=assimbly.version -DnewVersion=${SNAPSHOT_VERSION} | ||
- name: Publish package | ||
run: mvn --batch-mode deploy | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
|
This file was deleted.
Oops, something went wrong.