Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new release workflow & deleted old publish action #130

Merged
merged 1 commit into from
Jun 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions .github/workflows/new-release.yml
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 }}


60 changes: 0 additions & 60 deletions .github/workflows/release-publish.yml

This file was deleted.