Skip to content

Commit

Permalink
ci: add publish-pkg-github
Browse files Browse the repository at this point in the history
  • Loading branch information
shimeoki committed Dec 3, 2024
1 parent 6997e09 commit 0358717
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/publish-pkg-github.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish to GitHub Packages

on:
release:
types:
- created
workflow_dispatch:

permissions:
contents: read
packages: write

jobs:
publish-pkg-github:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin

- name: Setup Gradle
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0

- name: Publish package
run: ./gradlew :lib:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 0358717

Please sign in to comment.