-
Notifications
You must be signed in to change notification settings - Fork 7
65 lines (57 loc) · 1.95 KB
/
contextive-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
name: Contextive Publish
on:
release:
types: [published]
## Keeping in Comments as may be helpful for future publish-rescue requirements
# workflow_dispatch:
# inputs:
# release:
# description: 'Release to publish'
# required: true
# type: string
env:
dotnet-version: '8.0.x'
jobs:
get-matrix:
uses: ./.github/workflows/get-matrix.yml
with:
matrix-path: .github/release-matrix.yml
publish-per-runtime:
needs: get-matrix
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.get-matrix.outputs.matrix) }}
uses: ./.github/workflows/contextive-runtime-publish.yml
with:
release: ${{ github.ref_name }}
# release: ${{ inputs.release }} # Use this if switching to manual publish
dotnet_runtime: ${{ matrix.dotnet_runtime }}
os: ${{ matrix.os }}
vsce_platform: ${{ matrix.vsce_platform }}
secrets:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
VSCE_PAT: ${{ secrets.VSCE_PAT }}
OVSX_PAT: ${{ secrets.OVSX_PAT }}
publish-intellij:
name: Contextive IntelliJ Publish
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: ./.github/actions/init-dotnet
- uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: '21'
- name: Build
id: build
run: dotnet fsi intellij/build.fsx -- --release ${{ github.ref_name }}
# run: dotnet fsi intellij/build.fsx -- --release ${{ inputs.release }} # Use this if switching to manual publishg
working-directory: src
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
CERTIFICATE_CHAIN: ${{ secrets.JETBRAINS_CERTIFICATE_CHAIN }}
PRIVATE_KEY: ${{ secrets.JETBRAINS_PRIVATE_KEY }}
PRIVATE_KEY_PASSWORD: ${{ secrets.JETBRAINS_PRIVATE_KEY_PASSWORD }}
PUBLISH_TOKEN: ${{ secrets.JETBRAINS_PUBLISH_TOKEN }}