Added onLoad and onUnload #8
Workflow file for this run
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
name: Publish package to the Package Repository | |
on: | |
workflow_dispatch: | |
release: | |
types: [ created ] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up the Package Repository | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
server-id: cloudsmith | |
server-username: MAVEN_USERNAME | |
server-password: MAVEN_PASSWORD | |
- name: Build with Maven | |
run: mvn -B package --file pom.xml --update-snapshots | |
- name: Publish package | |
run: mvn deploy | |
env: | |
MAVEN_USERNAME: ${{ secrets.CLOUDSMITH_USERNAME }} | |
MAVEN_PASSWORD: ${{ secrets.CLOUDSMITH_TOKEN }} |