Skip to content

Conversation

@SimonIT
Copy link

@SimonIT SimonIT commented Sep 10, 2022

Uploading a new artifact to the mvn branch is just executing ./gradlew gitPublishPush

I also tried it to automate via GitHub Actions, so every time a release got created via GitHub it would automatically upload them, but I didn't got it working. This was my config:

name: Release

on:
  release:
    types: [ published ]

jobs:
  release:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-java@v3
        with:
          distribution: 'temurin'
          java-version: '11'
          cache: 'gradle'
      - run: ./gradlew gitPublishPush
        env:
          GRGIT_USER: ${{ secrets.GITHUB_TOKEN }}
      - name: Release
        uses: softprops/action-gh-release@v1
        with:
          files: build/libs/spriter-*.jar

Maybe you want to try it or got a better idea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant