-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (33 loc) · 1.07 KB
/
release.yml
File metadata and controls
35 lines (33 loc) · 1.07 KB
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
name: Release
on:
workflow_dispatch:
jobs:
pack:
uses: ./.github/workflows/pack.yml
publish:
# if: startsWith(github.ref, 'refs/heads/release/')
# While in preview, release from main branch
if: github.ref == 'refs/heads/main'
needs: pack
runs-on: ubuntu-latest
steps:
- name: Download Shell
uses: actions/download-artifact@v3
with:
name: shell
path: ./out
- name: Download WorkNet
uses: actions/download-artifact@v3
with:
name: worknet
path: ./out
- name: Create Release
uses: marvinpinto/action-automatic-releases@v1.2.1
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: ${{ needs.pack.outputs.PrereleaseVersion != '' }}
title: Release ${{ needs.pack.outputs.NuGetPackageVersion }}
automatic_release_tag: ${{ needs.pack.outputs.NuGetPackageVersion }}
files: ./out/*
- name: Push to Nuget.org
run: dotnet nuget push ./out/*.nupkg --api-key ${{ secrets.NUGET_ORG_TOKEN }} --source https://api.nuget.org/v3/index.json