-
Notifications
You must be signed in to change notification settings - Fork 2
70 lines (61 loc) · 2.24 KB
/
main.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: .NET Framework Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
name: Checkout Code
# - name: Setup MSBuild Path
# uses: microsoft/setup-msbuild@v1
# env:
# ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
- name: Setup NuGet
uses: NuGet/setup-nuget@v1.0.2
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
- name: Restore NuGet Packages
run: nuget restore clicSANDMac.sln
- name: Build and Publish Web App
run: msbuild clicSANDMac.sln /p:Configuration=Debug
- name: Package the app
run: |
sh ./package
# - name: Zip the release
# run: 7z a clicSAND.zip bin\Release
# - name: Create Release
# id: create_release
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: ${{ github.ref }}
# release_name: Release ${{ github.ref }}
# draft: false
# prerelease: false
# - name: Upload Release Asset
# id: upload-release-asset
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
# asset_path: ./model_runner.zip
# asset_name: model_runner.zip
# asset_content_type: application/zip
# - name: Add Nuget source
# run: dotnet nuget add source https://nuget.pkg.github.com/nickidw/index.json -n github -u nickidw -p GH_TOKEN [--store-password-in-clear-text]
# - name: Nuget Pack
# run: dotnet pack --configuration Release
# - name: Nuget Push
# run: dotnet nuget push "bin/Release/ModelRunner.1.0.0.nupkg" --source "github"
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: published_app
path: |
clicSANDMac.pkg