diff options
| author | Pinapelz <yukais@pinapelz.com> | 2023-10-27 20:28:56 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2023-10-27 20:28:56 -0700 |
| commit | 905c62a9b58e9a4e80c3f0fb3b71843bae6413c6 (patch) | |
| tree | 12548bf6b0a7a2626b3b4bad2d9d8935e97325db /.github | |
| parent | 6a7911864b2b71eddc61de5591d577ebe48e66b4 (diff) | |
add workflow to build for Github Packages
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/publish.yml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..4386107 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,20 @@ +name: Publish package to GitHub Packages +on: + release: + types: [created] +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@v4 + - 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 }} |
