Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment with gradle #48

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Deployment with gradle #48

wants to merge 2 commits into from

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.

None yet

1 participant