Skip to content

Release v0.2.0 (#40) #2

Release v0.2.0 (#40)

Release v0.2.0 (#40) #2

Workflow file for this run

name: 'Release'
on:
push:
tags:
- 'v*'
env:
GRADLE_OPTS: -Dorg.gradle.daemon=true -Dorg.gradle.parallel=true -Dorg.gradle.welcome=never
GPG_SEC: ${{ secrets.PRIVATE_KEY }}
GPG_PASSWORD: ${{ secrets.PRIVATE_KEY_PASSWORD }}
jobs:
release:
name: 'Release'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 'Set up Java 17'
uses: actions/setup-java@v3
with:
java-version: 17
distribution: zulu
java-package: jdk+fx
- name: 'Cache ~/.konan'
id: cache-konan
uses: actions/cache@v3
with:
path: |
~/.konan
key: ${{ runner.os }}-konan-${{ hashFiles('**/*.gradle.kts', '**/gradle-wrapper.properties') }}-release
restore-keys: |
${{ runner.os }}-konan-${{ hashFiles('**/*.gradle.kts', '**/gradle-wrapper.properties') }}-
${{ runner.os }}-konan-
- name: 'Publish a release of lib'
id: publish
uses: gradle/gradle-build-action@v2.9.0
with:
gradle-version: wrapper
arguments: |
build
publishAllPublicationsToGitHubRepository
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 'Publish a release of plugin'
id: publish

Check failure on line 53 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 53, Col: 13): The identifier 'publish' may not be used more than once within the same scope.
uses: gradle/gradle-build-action@v2.9.0
with:
gradle-version: wrapper
arguments: |
build
publishPlugin
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JB_TOKEN: ${{ secrets.JB_TOKEN }}
CERTIFICATE_CHAIN: ${{ secrets.CERTIFICATE_CHAIN }}
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
PRIVATE_KEY_PASSWORD: ${{ secrets.PRIVATE_KEY_PASSWORD }}
github_release:
needs: release
name: 'Github Release'
runs-on: ubuntu-latest
steps:
- name: 'Github Release'
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false