Skip to content

v0.0.12

v0.0.12 #12

Workflow file for this run

name: Publish
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Restore dependencies
run: dotnet restore ./src/dev/HESIMS/HESIMS.sln
- name: Build
run: dotnet build ./src/dev/HESIMS/HESIMS.sln --configuration Release --no-restore
- name: Test
run: dotnet test ./src/dev/HESIMS/HESIMS.sln --configuration Release --no-build --verbosity normal
- name: Publish
run: dotnet publish ./src/dev/HESIMS/HESIMS.Web/HESIMS.Web.csproj --configuration Release --no-build --no-restore --output ./src/dev/HESIMS/HESIMS.Web/bin/Release/net7.0/publish
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3
with:
name: HESIMS
path: ./src/dev/HESIMS/HESIMS.Web/bin/Release/net7.0/publish
- name: Zip Release Package
uses: thedoctor0/zip-release@0.7.1
with:
type: 'zip'
filename: 'HESIMS.zip'
path: './src/dev/HESIMS/HESIMS.Web/bin/Release/net7.0/publish'
- name: Upload Release Package
uses: ncipollo/release-action@v1.12.0
with:
artifacts: "HESIMS.zip"