Skip to content

Commit

Permalink
Add release github action
Browse files Browse the repository at this point in the history
  • Loading branch information
russcam committed May 23, 2024
1 parent 945808b commit 71c1922
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Release

on:
workflow_dispatch:
release:
types: [ "published" ]

permissions:
checks: write

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

- name: Pack
run: ./build.sh pack
shell: bash

# - name: Publish NuGet package
# env:
# NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
# run: dotnet nuget push nuget/*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json
# shell: bash

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: LinguaNugetPkg
path: nuget

0 comments on commit 71c1922

Please sign in to comment.