-
Notifications
You must be signed in to change notification settings - Fork 25
38 lines (36 loc) · 1.07 KB
/
release.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
# https://acraven.medium.com/a-nuget-package-workflow-using-github-actions-7da8c6557863
name: Create new release from pushed tag
on:
push:
tags:
- "*"
jobs:
release:
name: Release Built Artifacts
runs-on: ubuntu-latest
steps:
- name: Wait for builds
uses: lewagon/[email protected]
with:
ref: ${{ github.ref }}
check-name: 'Build, Test, and Upload Builds'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 10
- name: Download artifacts
id: download-artifact
uses: dawidd6/action-download-artifact@v2
with:
github_token: ${{secrets.GITHUB_TOKEN}}
branch: main
workflow: dotnet.yml
workflow_conclusion: success
if_no_artifact_found: fail
skip_unpack: true
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
draft: true
files: |
*.zip
apiDocumentation.json