Remove most of the code to focus on publishing #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 GitHub Actions / .github/workflows/publish.ymlInvalid workflow file
|
||
with: | ||
command: ./gradlew publishAllPublicationsToGitHubPackagesRepository ${{ env.GRADLE_ARGS }} | ||
env: | ||
USERNAME: ${{ github.actor }} | ||
TOKEN: ${{ secrets.GITHUB_TOKEN }} |