Skip to content

Remove most of the code to focus on publishing #14

Remove most of the code to focus on publishing

Remove most of the code to focus on publishing #14

Workflow file for this run

on:
push:
branches: [ main ]
release:
types: [ published ]
pull_request:
branches: [ "**" ]
jobs:
build-gradle-project:
name: Build Gradle Project
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-build
- name: "Gradle: Build"
uses: ./.github/actions/run-tests
with:
command: ./gradlew build check ${{ env.GRADLE_ARGS }}
- name: "Gradle: Publish (Main & Release Only)"
uses: ./.github/actions/run-tests
if: ${{ startsWith(github.ref, 'refs/tags/v', 'refs/heads/0.2.1-sovity') }}

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

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yml

Invalid workflow file

The workflow is not valid. .github/workflows/publish.yml (Line: 28, Col: 13): Too many parameters supplied: '('. Located at position 11 within expression: startsWith(github.ref, 'refs/tags/v', 'refs/heads/0.2.1-sovity')
with:
command: ./gradlew publishAllPublicationsToGitHubPackagesRepository ${{ env.GRADLE_ARGS }}
env:
USERNAME: ${{ github.actor }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}