Skip to content

Release

Release #21

Workflow file for this run

name: Release
on:
release:
types: [ created ]
jobs:
Build:
runs-on: windows-latest
permissions:
contents: write
env:
Solution_Name: Fda.sln
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.0.2
- name: Add Source
run: |
dotnet nuget add source --name nuget "https://api.nuget.org/v3/index.json"
dotnet nuget add source --username HydrologicEngineeringCenter --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/HydrologicEngineeringCenter/index.json"
dotnet nuget add source --name fda-nuget "https://www.hec.usace.army.mil/nexus/repository/fda-nuget/"
- name: Publish
run: dotnet publish HEC.FDA.View/HEC.FDA.View.csproj
- name: Zip
run: 7z a HEC-FDA.7z D:\a\HEC-FDA\HEC-FDA\Build\publish\FDA2.0\
- name: upload artifact to release
uses: shogo82148/actions-upload-release-asset@v1.6.2
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: HEC-FDA.7z