File tree Expand file tree Collapse file tree 2 files changed +24
-15
lines changed Expand file tree Collapse file tree 2 files changed +24
-15
lines changed Original file line number Diff line number Diff line change 82
82
with :
83
83
commit_message : ' test(snapshot): update snapshots ${{ github.sha }} for ${{ matrix.os }}'
84
84
85
+ publish-github-packages :
86
+ if : github.ref == 'refs/heads/main'
87
+ needs : [test, snapshot]
88
+ runs-on : ubuntu-latest
89
+ permissions :
90
+ packages : write
91
+ steps :
92
+ - uses : actions/checkout@v4
93
+ with :
94
+ depth : 0
95
+
96
+ - id : version
97
+
98
+
99
+ - uses : ./.github/actions/build
100
+
101
+ - name : dotnet pack
102
+ run : dotnet pack -c Release /p:Version=${{ steps.versioning.outputs.version }} -o drop/nuget
103
+
104
+ - name : dotnet nuget push
105
+ run : |
106
+ dotnet nuget push drop/nuget/*.nupkg --api-key "${{ secrets.NUGET_KEY }}" --skip-duplicate --source https://api.nuget.org/v3/index.json
107
+
85
108
publish-docs :
86
109
if : github.ref == 'refs/heads/main'
87
110
needs : [test, snapshot]
Original file line number Diff line number Diff line change 8
8
runs-on : ubuntu-latest
9
9
steps :
10
10
- uses : actions/checkout@v4
11
- - uses : actions/setup-node@v4
12
- with :
13
- node-version : 18
14
- - uses : actions/setup-dotnet@v4
15
- with :
16
- dotnet-version : |
17
- 8.x
18
-
19
- - run : npm install
20
- working-directory : templates
21
-
22
- - run : npm run lint
23
- working-directory : templates
24
11
25
- - run : npm run build
26
- working-directory : templates
12
+ - uses : ./.github/actions/build
27
13
28
14
- name : dotnet pack
29
15
run : dotnet pack -c Release /p:Version=${GITHUB_REF_NAME#v} -o drop/nuget
You can’t perform that action at this time.
0 commit comments