-
Notifications
You must be signed in to change notification settings - Fork 21
37 lines (33 loc) · 904 Bytes
/
publish.yml
File metadata and controls
37 lines (33 loc) · 904 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: publish
on:
release:
types: [published]
env:
DOTNET_NOLOGO: true
jobs:
publish:
name: publish
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Fetch all tags and branches
run: git fetch --prune --unshallow
- name: Deploy
env:
JETBRAINS_API_KEY: ${{ secrets.JETBRAINS_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./build.ps1 publish
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
path: |
artifacts/*.nupkg
artifacts/*.zip
- uses: NBTX/upload-release-assets@v1
if: github.event_name == 'release'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
targets: 'artifacts/*.*'
upload_url: ${{ github.event.release.upload_url }}