Visor 1.1.0 #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | |
on: | |
release: | |
types: [released] | |
jobs: | |
build: | |
uses: ./.github/workflows/build.yml | |
deploy: | |
needs: [ build ] | |
runs-on: ubuntu-latest | |
env: | |
VERSION: ${{ github.event.release.tag_name }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '6.x' # SDK Version to use. | |
- name: prepare version | |
run: | | |
echo "$VERSION" | |
- name: pack LeviySoft.Visor | |
run: | | |
cd src | |
dotnet pack LeviySoft.Visor/LeviySoft.Visor.csproj -c Release /p:Version=${{env.VERSION}} /p:PackageVersion=${{env.VERSION}} | |
- name: pack LeviySoft.Visor.Gen | |
run: | | |
cd src | |
dotnet pack LeviySoft.Visor.Gen/LeviySoft.Visor.Gen.csproj -c Release /p:Version=${{env.VERSION}} /p:PackageVersion=${{env.VERSION}} | |
- name: pack LeviySoft.Visor.LanguageExt | |
run: | | |
cd src | |
dotnet pack LeviySoft.Visor.LanguageExt/LeviySoft.Visor.LanguageExt.csproj -c Release /p:Version=${{env.VERSION}} /p:PackageVersion=${{env.VERSION}} | |
- name: publish | |
run: | | |
cd src | |
dotnet nuget push **/LeviySoft.Visor.*.nupkg -k ${{secrets.NUGET_APIKEY}} -s https://www.nuget.org |