Skip to content

Add GitHub action to build artifact #7

Add GitHub action to build artifact

Add GitHub action to build artifact #7

Workflow file for this run

name: CI
on:
push:
branches:
- master
workflow_dispatch:
permissions:
contents: read
jobs:
build-and-test:
runs-on: ubuntu-latest
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

Check failure on line 26 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yml

Invalid workflow file

You have an error in your yaml syntax on line 26
- name: Publish package
run: "COMMIT_SHA=`git log -n 1 --pretty=format:%H`" ./gradlew publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMMIT_SHA: ${{ vars.GITHUB_SHA }}