Skip to content

Commit

Permalink
Added workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjt committed Nov 15, 2023
1 parent d78b484 commit e923ef2
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release Proper
on:
push:
tags:
- '*.*.*-**'
workflow_dispatch:

jobs:
prerequisites:
name: prerequisites
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
source-url: https://nuget.pkg.github.com/martinjt/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- run: dotnet build --configuration Release
- name: Create the package
run: dotnet pack --configuration Release -o artifacts /p:Version=
- name: Publish the package to GPR
run: dotnet nuget push artifacts/*.nupkg

0 comments on commit e923ef2

Please sign in to comment.