Skip to content

ci: cond channel

ci: cond channel #5

Workflow file for this run

name: Publish
on:
workflow_dispatch:
push:
branches: [ master ]
jobs:
publish:
runs-on: ubuntu-latest
env:
HANGAR_API_TOKEN: ${{ secrets.HANGAR_API_TOKEN }}
HANGAR_ID: ${{ secrets.HANGAR_ID }}
HANGAR_PLATFORM_VERSIONS: ${{ secrets.HANGAR_PLATFORM_VERSIONS }}
HANGAR_PUB_CHANNEL: ${{ github.event_name == 'push' && 'Preview' || 'Release' }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- uses: gradle/actions/setup-gradle@v4
- run: ./gradlew :Publication:publishPluginPublicationToHangar