diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..7c0503b --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,30 @@ +name: Release + +on: + release: + types: + - released + +jobs: + deploy: + name: Deploy library + 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@v4 + + - name: Upload Github + env: + RELEASE_NAME: ${{ github.event.release.name }} + DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }} + run: ./gradlew kmvi:publishAllPublicationsToGitHubPackagesRepository