diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..7a9ff3f --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,19 @@ +name: Publish package to GitHub Packages +on: [push] + +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + java-version: '8' + distribution: 'adopt' + - name: Publish package + run: mvn --batch-mode deploy -DrepositoryId=github -Dversion=${GITHUB_REF_NAME}-SNAPSHOT + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/pom.xml b/pom.xml index 6fd3d35..1876161 100644 --- a/pom.xml +++ b/pom.xml @@ -483,4 +483,11 @@ + + + github + GitHub Packages + https://maven.pkg.github.com/frohoff/ysoserial + +