Skip to content

Commit

Permalink
chore(ci/cd): publish to gitlab packages
Browse files Browse the repository at this point in the history
  • Loading branch information
xooooooooox committed Dec 27, 2024
1 parent b36e325 commit 493d9f5
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/trigger-publish-packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish package to the Maven Central Repository and GitHub Packages
on:
release:
types: [created]
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
# - name: Set up Java for publishing to Maven Central Repository
# uses: actions/setup-java@v4
# with:
# java-version: '8'
# distribution: 'temurin'
# server-id: ossrh
# server-username: MAVEN_USERNAME
# server-password: MAVEN_PASSWORD
# - name: Publish to the Maven Central Repository
# run: mvn --batch-mode clean deploy -Pcoding,publish-central -DskipTests
# env:
# MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
# MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
- name: Set up Java for publishing to GitHub Packages
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'temurin'
- name: Publish to GitHub Packages
run: mvn --batch-mode clean deploy -DaltDeploymentRepository=github::https://maven.pkg.github.com/xooooooooox/radp -DskipTests
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- [ ] dependency management shiro and jwt version
- [ ] add Utility classes for base64 and digest
- [ ] gitlab actions to auto publish to github packages

## 0.3

Expand Down

0 comments on commit 493d9f5

Please sign in to comment.