-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (26 loc) · 1002 Bytes
/
createrelease.yml
File metadata and controls
37 lines (26 loc) · 1002 Bytes
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
name: Release
on:
release:
types: [published]
jobs:
build:
name: "Release"
env:
NODE_VERSION: '14.x' # set this to the node version to use
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Setup Node.js ${{ env.NODE_VERSION }}
uses: actions/[email protected]
with:
node-version: ${{ env.NODE_VERSION }}
- name: Update npm
run: |
npm install npm@latest
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Build and Publish Nuget Packages
run: |
nuget pack nuspec\EventStoreProjections.nuspec -Properties version=${{ steps.get_version.outputs.VERSION }} -OutputDirectory Nugets
dotnet nuget push Nugets/EventStoreProjections.${{ steps.get_version.outputs.VERSION }}.nupkg --api-key ${{ secrets.PRIVATEFEED_APIKEY }} --source ${{ secrets.PRIVATEFEED_URL }}