Repository navigation
79 lines (74 loc) · 2.08 KB
/
Copy pathpublish.yml
File metadata and controls
79 lines (74 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Publish
on:
workflow_dispatch:
inputs:
web:
type: boolean
description: Publish web packages
default: true
dotnet:
type: boolean
description: Publish .NET packages
default: true
kotlin:
type: boolean
description: Publish Kotlin packages
default: true
force:
type: boolean
description: Publish all web packages, not only the ones changed in the last 26 hours
default: false
website:
type: boolean
description: Deploy the website (next.alphatab.net) after the web packages
default: true
dry_run:
type: boolean
description: Build and verify all packages without publishing them
default: false
jobs:
web:
if: inputs.web
uses: ./.github/workflows/~publish_web.yml
permissions:
contents: read
id-token: write
secrets: inherit
with:
version: alpha ${{github.run_number}}
npm_tag: alpha
force: ${{ inputs.force || inputs.dry_run }}
dry_run: ${{ inputs.dry_run }}
dotnet:
if: inputs.dotnet
uses: ./.github/workflows/~publish_dotnet.yml
permissions:
contents: read
id-token: write
secrets: inherit
with:
version: alpha ${{github.run_number}}
force: ${{ inputs.force || inputs.dry_run }}
dry_run: ${{ inputs.dry_run }}
kotlin:
if: inputs.kotlin
uses: ./.github/workflows/~publish_kotlin.yml
secrets: inherit
with:
version: alpha ${{github.run_number}}
force: ${{ inputs.force || inputs.dry_run }}
dry_run: ${{ inputs.dry_run }}
website:
needs: web
if: ${{ !cancelled() && inputs.website && (needs.web.result == 'success' || needs.web.result == 'skipped') }}
uses: ./.github/workflows/~publish_website.yml
secrets:
DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
permissions:
contents: read
with:
channel: next
npm_tag: alpha
deploy_branch: develop
expected_versions: ${{ needs.web.outputs.published_versions }}
dry_run: ${{ inputs.dry_run }}