Skip to content

Commit 8082bf1

Browse files
committed
build: Add temp workflow to re-trigger Kotlin publish
1 parent aae49fd commit 8082bf1

File tree

1 file changed

+78
-0
lines changed

1 file changed

+78
-0
lines changed
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# This file is to re-trigger release builds as a workaround to failed steps which require code changes.
2+
3+
name: Release (manual)
4+
on:
5+
workflow_dispatch:
6+
7+
jobs:
8+
# release_web:
9+
# name: Web
10+
# runs-on: windows-latest
11+
# steps:
12+
# - uses: actions/checkout@v4
13+
# - uses: actions/setup-node@v4
14+
# with:
15+
# node-version: 'lts/*'
16+
# - run: npm install
17+
# - run: node ./scripts/update-version.js ${{github.run_number}}
18+
# - run: npm run build
19+
# - run: npm pack
20+
# - uses: actions/setup-node@v4
21+
# with:
22+
# node-version: 'lts/*'
23+
# registry-url: https://registry.npmjs.org/
24+
# - name: Publish to NPM (release)
25+
# run: npm publish --access public
26+
# env:
27+
# NODE_AUTH_TOKEN: ${{secrets.NPMJS_AUTH_TOKEN}}
28+
29+
# release_csharp:
30+
# name: C#
31+
# runs-on: windows-latest
32+
# steps:
33+
# - uses: actions/checkout@v4
34+
# - uses: actions/setup-node@v4
35+
# with:
36+
# node-version: 'lts/*'
37+
# - uses: actions/setup-dotnet@v4
38+
# with:
39+
# dotnet-version: '8'
40+
# env:
41+
# NUGET_AUTH_TOKEN: ${{secrets.NUGET_API_KEY}}
42+
# - run: npm install
43+
# - run: node ./scripts/update-csharp-version.js ${{github.run_number}}
44+
# - run: npm run build-csharp
45+
# - 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
46+
# - 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
47+
48+
release_kotlin_android:
49+
name: Kotlin (Android)
50+
runs-on: windows-latest
51+
env:
52+
OSSRH_USERNAME: ${{secrets.OSSRH_USERNAME}}
53+
OSSRH_PASSWORD: ${{secrets.OSSRH_PASSWORD}}
54+
SONATYPE_STAGING_PROFILE_ID: ${{secrets.SONATYPE_STAGING_PROFILE_ID}}
55+
SONATYPE_SIGNING_KEY_ID: ${{secrets.SONATYPE_SIGNING_KEY_ID}}
56+
SONATYPE_SIGNING_PASSWORD: ${{secrets.SONATYPE_SIGNING_PASSWORD}}
57+
SONATYPE_SIGNING_KEY: ${{secrets.SONATYPE_SIGNING_KEY}}
58+
steps:
59+
- uses: actions/checkout@v4
60+
61+
- uses: actions/setup-node@v4
62+
with:
63+
node-version: 'lts/*'
64+
65+
- uses: actions/setup-java@v4
66+
with:
67+
java-version: "19"
68+
distribution: "temurin"
69+
70+
- run: npm install
71+
- run: node ./scripts/update-kotlin-version.js
72+
- run: npm run build-kotlin
73+
- run: .\gradlew.bat publishAllPublicationsToSonatypeRepository closeAndReleaseSonatypeStagingRepository
74+
working-directory: ./src.kotlin/alphaTab/
75+
76+
- run: .\gradlew.bat --stop
77+
working-directory: ./src.kotlin/alphaTab/
78+

0 commit comments

Comments
 (0)