Skip to content

Add GitHub action to build artifact #9

Add GitHub action to build artifact

Add GitHub action to build artifact #9

Workflow file for this run

name: CI
on:
push:
branches:
- master
workflow_dispatch:
permissions:
contents: read
jobs:
build-and-test:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Publish package
run: |
COMMIT_SHA="`git log -n 1 --pretty=format:%H`" ./gradlew publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}