Skip to content

Release 1.3.0 (#1482) #8

Release 1.3.0 (#1482)

Release 1.3.0 (#1482) #8

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
jobs:
release_web:
name: Web
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- run: npm install
- run: node ./scripts/update-version.js ${{github.run_number}}
- run: npm run build
- run: npm pack
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
registry-url: https://registry.npmjs.org/
- name: Publish to NPM (release)
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPMJS_AUTH_TOKEN}}
release_csharp:
name: C#
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8'
env:
NUGET_AUTH_TOKEN: ${{secrets.NUGET_API_KEY}}
- run: npm install
- run: node ./scripts/update-csharp-version.js ${{github.run_number}}
- run: npm run build-csharp
- run: dotnet nuget push src.csharp\AlphaTab\bin\Release\*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
- run: dotnet nuget push src.csharp\AlphaTab.Windows\bin\Release\*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
release_kotlin_android:
name: Kotlin (Android)
runs-on: windows-latest
env:
OSSRH_USERNAME: ${{secrets.OSSRH_USERNAME}}
OSSRH_PASSWORD: ${{secrets.OSSRH_PASSWORD}}
SONATYPE_STAGING_PROFILE_ID: ${{secrets.SONATYPE_STAGING_PROFILE_ID}}
SONATYPE_SIGNING_KEY_ID: ${{secrets.SONATYPE_SIGNING_KEY_ID}}
SONATYPE_SIGNING_PASSWORD: ${{secrets.SONATYPE_SIGNING_PASSWORD}}
SONATYPE_SIGNING_KEY: ${{secrets.SONATYPE_SIGNING_KEY}}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8'
- run: npm install
- run: node ./scripts/update-kotlin-version.js
- run: npm run build-kotlin
- run: .\gradlew.bat publishAllPublicationsToSonatypeRepository closeAndReleaseSonatypeStagingRepository
working-directory: ./src.kotlin/alphaTab/
- run: .\gradlew.bat --stop
working-directory: ./src.kotlin/alphaTab/