-
Notifications
You must be signed in to change notification settings - Fork 0
25 lines (25 loc) · 889 Bytes
/
Copy pathpush.yml
File metadata and controls
25 lines (25 loc) · 889 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Set up dotnet
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.301'
- name: Checkout
uses: actions/checkout@v7
- name: Build
run: dotnet build src/SimpleLevelEditor.slnx -c Release
- name: Test
run: dotnet test src/SimpleLevelEditor.slnx -c Release --no-build
- name: Pack
run: dotnet pack src/SimpleLevelEditor.Formats -c Release -o .
- name: Push
run: dotnet nuget push *.nupkg -s nuget.org -k ${NUGET_SECRET} -n --skip-duplicate
env:
NUGET_SECRET: ${{ secrets.NUGET_SECRET }}