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
dependabot[bot] 3b1ebe38ce Bump actions/checkout from 5 to 6 (#46)
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-11 01:48:24 +03:00

61 lines
1.5 KiB
YAML

name: "Release workflow"
on:
release:
types: [ published ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
- run: dotnet restore
- run: dotnet pack
- name: Drop SimpleOTP
uses: actions/upload-artifact@main
with:
name: SimpleOTP
path: libraries/SimpleOTP/bin/Release/EugeneFox.SimpleOTP*.*nupkg
- name: Drop SimpleOTP.DependencyInjection
uses: actions/upload-artifact@main
with:
name: SimpleOTP.DependencyInjection
path: libraries/SimpleOTP.DependencyInjection/bin/Release/EugeneFox.SimpleOTP.DependencyInjection*.*nupkg
publish-nuget:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@main
with:
merge-multiple: true
- name: Publish NuGet and symbols
uses: edumserrano/nuget-push@v1.2.2
with:
api-key: ${{ secrets.NUGET_API_KEY }}
working-directory: .
publish-github:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@main
with:
merge-multiple: true
- 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