-
Notifications
You must be signed in to change notification settings - Fork 0
83 lines (79 loc) · 2.5 KB
/
publish.yml
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
80
81
82
83
on:
workflow_dispatch:
inputs:
is-release-build:
type: boolean
description: Whether the version is a prerelease or full release
default: false
use-skia-cache:
type: boolean
description: Use Skia Binary from cache
default: false
jobs:
build:
uses: ./.github/workflows/~reusable-full-build.yml
with:
use-skia-cache: ${{ inputs.use-skia-cache }}
alphaskia-version: "1.0"
is-release-build: ${{ inputs.is-release-build }}
secrets: inherit
dotnet-publish:
runs-on: ubuntu-latest
needs: [build]
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: nuke
path: build/bin/Debug/publish/
- uses: actions/download-artifact@v3
with:
name: nupkgs
path: dist/.organize/nupkgs
- run: ./build.sh DotNetPublish
java-publish:
runs-on: ubuntu-latest
needs: [build]
env:
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
SONATYPE_SIGNING_KEY: ${{ secrets.SONATYPE_SIGNING_KEY }}
SONATYPE_SIGNING_KEY_ID: ${{ secrets.SONATYPE_SIGNING_KEY_ID }}
SONATYPE_SIGNING_PASSWORD: ${{ secrets.SONATYPE_SIGNING_PASSWORD }}
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: nuke
path: build/bin/Debug/publish/
- uses: actions/download-artifact@v3
with:
# workaround until we know how to upload existing maven packages
# https://discuss.gradle.org/t/how-to-push-maven-to-ossrh-from-previous-local-publish/46875
# name: maven
# path: dist/.organize/maven
path: dist/.organize
- run: ./build.sh JavaPublish
node-publish:
runs-on: ubuntu-latest
needs: [build]
env:
NPMJS_AUTH_TOKEN: ${{ secrets.NPMJS_AUTH_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: nuke
path: build/bin/Debug/publish/
- uses: actions/download-artifact@v3
with:
name: nodetars
path: dist/.organize/node
- uses: actions/setup-node@v3
with:
node-version: "lts/*"
registry-url: https://registry.npmjs.org/
- run: ./build.sh NodePublish