-
Notifications
You must be signed in to change notification settings - Fork 6
46 lines (43 loc) · 1.16 KB
/
cd.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
39
40
41
42
43
44
45
46
name: CD
on:
push:
branches:
- 'release/v**'
paths-ignore:
- '**.md'
permissions:
contents: write
packages: write
jobs:
docker-build:
uses: ./.github/workflows/docker-build-and-push.yml
with:
dockerfile: ./Dockerfile
push: true
standalone-build:
uses: ./.github/workflows/standalone-build.yml
create-github-release:
runs-on: ubuntu-latest
needs: [docker-build, standalone-build]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
- uses: dotnet/[email protected]
id: nbgv
- uses: actions/download-artifact@v4
with:
path: artifacts
- name: ZIP artifacts
run: |
7z a artifacts/fdd.zip ./artifacts/fdd/*
7z a artifacts/win-x86.zip ./artifacts/win-x86/*
7z a artifacts/win-x86-iis.zip ./artifacts/win-x86-iis/*
7z a artifacts/linux-x64.zip ./artifacts/linux-x64/*
- uses: softprops/action-gh-release@v1
with:
tag_name: v${{ steps.nbgv.outputs.SemVer2 }}
draft: true
prerelease: false
files: artifacts/*.zip
target_commitish: ${{ github.sha }}