Skip to content

Commit

Permalink
Update Release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
thinker227 committed Jan 15, 2024
1 parent 51a50bf commit 0d83738
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,23 @@ on:

jobs:
release:
name: Release
uses: Arthri/deploy-nuget/.github/workflows/deploy.yml@v1
secrets:
NUGET-API-KEY: ${{ secrets.NUGET_API_KEY }}

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: Install dependencies
run: dotnet restore src/Rascal
- name: Build
run: dotnet build src/Rascal --no-restore
- name: Create package
run: dotnet pack -c Release --no-build
- name: Push to Nuget
run: dotnet nuget push package/*.nupkg --source "https://api.nuget.org/v3/index.json" --api-key ${{ secrets.NUGET_API_KEY }}
5 changes: 5 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
<WarningsAsErrors>nullable</WarningsAsErrors>
</PropertyGroup>

<!-- Package properties -->
<PropertyGroup>
<PackageOutputPath>../../package</PackageOutputPath>
</PropertyGroup>

<!-- Package metadata -->
<PropertyGroup>
<Authors>thinker227</Authors>
Expand Down

0 comments on commit 0d83738

Please sign in to comment.