1
0
mirror of https://github.com/XFox111/SimpleOTP.git synced 2026-04-22 08:00:45 +03:00
Files
SimpleOTP/.github/workflows/release-workflow.yml
T
xfox111 1b989e7b35 Major 2.0 (#20)
* New 2.0 version + DependencyInjection library

* Updated docs and repo settings (devcontainers, vscode, github, etc.)

* Added tests

* Fixed bugs

* Minor test project refactoring

* Updated projects
- Added symbol packages
- Updated package versions to pre-release

* Updated SECURITY.md

* Added GitHub Actions workflows
2024-09-26 03:20:30 +03:00

53 lines
1.1 KiB
YAML

name: "Release workflow"
on:
release:
types: [ published ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- run: dotnet restore
- run: dotnet pack
- name: Drop artifacts
uses: actions/upload-artifact@main
with:
name: packages
path: libraries/**/Release/EugeneFox.SimpleOTP*.?nupkg
publish-nuget:
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@main
with:
name: packages
- name: Publish NuGet and symbols
uses: edumserrano/nuget-push@v1.2.2
with:
api-key: ${{ secrets.NUGET_API_KEY }}
working-directory: .
publish-github:
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@main
with:
name: packages
- name: dotnet nuget push
run: dotnet nuget push *.nupkg -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/xfox111/index.json --skip-duplicate --no-symbols