Skip to content

feat: add player module artifact #37

feat: add player module artifact

feat: add player module artifact #37

Workflow file for this run

name: Publishing
on:
push:
branches: [ "main" ]
permissions:
contents: read
packages: write
actions: read
jobs:
Publish:
name: Publish
runs-on: ubuntu-24.04
if: contains(github.event.head_commit.message, 'published')
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Java JDK
uses: graalvm/setup-graalvm@v1
with:
java-version: '21'
distribution: 'graalvm'
- name: Make gradlew executable
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew allJar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_USERNAME: ${{ github.actor }}
isGitHubActions: "true"
- name: Set outputs
id: short_sha
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Get Repository Name
uses: MariachiBear/[email protected]
- name: Publish to GitHub Packages
run: ./gradlew publish -PisGitHubActions=true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_USERNAME: ${{ github.actor }}