Skip to content

Commit

Permalink
Create deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
andreakarasho authored Mar 10, 2024
1 parent 1830d39 commit d57b83d
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: deploy

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
dotnet-quality: preview
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Pack
run: dotnet pack /src -c Release -o dist && dotnet pack /plugins/TinyEcs.Plugins/ -c Release -o dist
- name: Publish
run: |
dotnet nuget push "dist/TinyEcs.Main.1.0.0.nupkg" --api-key ${{ secrets.NUGET_KEY }} --source "github"
dotnet nuget push "dist/TinyEcs.Plugins.1.0.0.nupkg" --api-key ${{ secrets.NUGET_KEY }} --source "github"

0 comments on commit d57b83d

Please sign in to comment.