Skip to content

v0.9.0

v0.9.0 #23

Workflow file for this run

on:
release:
types: [published]
##workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.x.x
- name: Pack (release)
run: |
dotnet build -c Release -p:ContinuousIntegrationBuild=true
cd ./directives
dotnet pack -c Release -p:ContinuousIntegrationBuild=true
cd ..
cd ./src
dotnet pack -c Release -p:ContinuousIntegrationBuild=true
cd ..
cd ./cli
dotnet pack -c Release -p:ContinuousIntegrationBuild=true
cd ..
- name: Test (release)
run: |
# '-c Release' for dotnet run
# '-- Release' for ./cli
dotnet run --project ./cli -c Release -- Release --TEST
dotnet run --project ./cli -c Release -- Release -md >> $GITHUB_STEP_SUMMARY
################################
# NUGET
- name: NuGet Publish
run: |
cd ./directives
dotnet nuget push "bin/Release/*.nupkg" \
-k ${{ secrets.NUGET_API_KEY }} \
-s https://api.nuget.org/v3/index.json \
--timeout 60
cd ..
cd ./src
dotnet nuget push "bin/Release/*.nupkg" \
-k ${{ secrets.NUGET_API_KEY }} \
-s https://api.nuget.org/v3/index.json \
--timeout 60
cd ..
cd ./cli
dotnet nuget push "bin/Release/*.nupkg" \
-k ${{ secrets.NUGET_API_KEY }} \
-s https://api.nuget.org/v3/index.json \
--timeout 60
cd ..