-
Notifications
You must be signed in to change notification settings - Fork 18
47 lines (37 loc) · 1.12 KB
/
dotnetlinux.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
47
name: Release Candidate
on:
push:
# branches: [ "main" ]
pull_request:
# branches: [ "main" ]
jobs:
package:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: ["7.0.x"]
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Set EnableWindowsTargeting
run: dotnet new tool-manifest
- name: Restore dependencies
run: dotnet restore
- name: Package
run: dotnet dotnet publish -r win-x64 -p:PublishSingleFile=true --self-contained true -c Release --output ./forza/devrel
- name: Compress Artifact
run: zip -r ./forza/devrel/ForzaDSX-RC.zip ./forza/devrel
- name: Upload Release
uses: ncipollo/release-action@v1
with:
name: ForzaDSX-RC
artifacts: ./forza/devrel/ForzaDSX-RC.zip
tag: latest-candidate
prerelease: true
allowUpdates: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
continue-on-error: true