Skip to content

v2.1.1

v2.1.1 #42

Workflow file for this run

name: πŸš€ Release
on:
release:
types: [published]
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: πŸ” Configure Secrets
uses: microsoft/variable-substitution@v1
with:
files: '**/appsettings.json'
env:
MONGO_PASSWORD: ${{ secrets.MONGO_PASSWORD }}
- name: πŸ§ͺ Test
env:
MONGO_PASSWORD: ${{ secrets.MONGO_PASSWORD }}
run: |
dotnet test
- name: πŸ“¦ Build
working-directory: ./USTACLI
run: dotnet pack -c Release
- name: πŸš€ Publish to Nuget
working-directory: ./USTACLI
run: dotnet nuget push ./nupkg/*.nupkg -n -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
- name: πŸš€ Publish to GitHub
working-directory: ./USTACLI
run: dotnet nuget push ./nupkg/*.nupkg -n -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/lineville/index.json