Skip to content

Commit

Permalink
Create release action
Browse files Browse the repository at this point in the history
  • Loading branch information
dazfuller authored Oct 12, 2024
1 parent d683460 commit 14cbc01
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: release

on:
push:
tags:
- "v*"
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
- name: Get latest tag version
id: vars
run: echo "GIT_TAG=`echo $(git describe --tags --abbrev=0)`" >> $GITHUB_OUTPUT
- name: Package
env:
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
run: dotnet pack -p:PackageVersion=$RELEASE_VERSION

0 comments on commit 14cbc01

Please sign in to comment.