From 9662be7d889ec5bf4d117635b91864bd65f4c503 Mon Sep 17 00:00:00 2001 From: Taras Drozdovskyi Date: Mon, 28 Aug 2023 15:45:13 +0300 Subject: [PATCH] Add github->action workflow for publish lpvs-*.jar package Signed-off-by: Taras Drozdovskyi --- .github/workflows/publish-gh-package.yml | 21 +++++++++++++++++++++ pom.xml | 8 +++++++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish-gh-package.yml diff --git a/.github/workflows/publish-gh-package.yml b/.github/workflows/publish-gh-package.yml new file mode 100644 index 00000000..b8136ebb --- /dev/null +++ b/.github/workflows/publish-gh-package.yml @@ -0,0 +1,21 @@ +name: Publish package to GitHub Packages +on: + push: + tags: + - 'v*' +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + - name: Publish package + run: mvn --batch-mode deploy + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/pom.xml b/pom.xml index 3d99888f..258842bd 100644 --- a/pom.xml +++ b/pom.xml @@ -162,5 +162,11 @@ - + + + github + GitHub Packages + https://maven.pkg.github.com/samsung/lpvs + +