Skip to content

v0.2.3

v0.2.3 #26

Workflow file for this run

name: 🚀 Release
on:
release:
types: [published]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
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:
source-url: https://nuget.pkg.github.com/lineville/index.json
dotnet-version: 7.0.x
env:
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_API_KEY }}
MONGO_PASSWORD: ${{ secrets.MONGO_PASSWORD }}
- name: 🧪 Test
run: |
dotnet test
- uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
env:
MONGO_PASSWORD: ${{ secrets.MONGO_PASSWORD }}
- name: 📦 Build
working-directory: ./USTACLI
run: dotnet pack -c Release -o out
- name: 🚀 Publish
working-directory: ./USTACLI
run: dotnet nuget push ./out/*.nupkg --skip-duplicate -n true -k ${{ secrets.NUGET_API_KEY }} --source https://nuget.pkg.github.com/lineville/index.json