Skip to content

Commit

Permalink
ci: Publish NuGet packages to GitHub Releases
Browse files Browse the repository at this point in the history
  • Loading branch information
trungnt2910 committed Jul 22, 2023
1 parent 341dc46 commit 728c569
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
- master

permissions:
contents: write
packages: write

jobs:
Expand Down Expand Up @@ -87,6 +88,17 @@ jobs:
dotnet nuget add source --username ${{ github.repository_owner }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"
dotnet nuget push out/nuget/** --api-key ${{ secrets.GITHUB_TOKEN }} --source "github"
- name: Create prerelease
if: ${{ github.ref == 'refs/heads/master' }}
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: ${{ steps.gitversion.outputs.semVer }}
prerelease: true
title: .NET workload for Haiku ${{ steps.gitversion.outputs.semVer }}
files: |
${{ github.workspace }}/out/nuget/*
# Clean up unnecessary files to prevent them from being cached
- name: Clean up LLVM
run: |
Expand Down

0 comments on commit 728c569

Please sign in to comment.