Skip to content

Commit

Permalink
publish and pls work
Browse files Browse the repository at this point in the history
  • Loading branch information
Yucked authored May 22, 2024
1 parent 8be8e88 commit ee733e9
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: .NET

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

jobs:
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: Build & Release
run: dotnet build --configuration Release -o Output

- name: NutGet Upload
if: success() && contains(github.event.head_commit.message, 'publish')
working-directory: Output
run: dotnet nuget push *.nupkg -k ${{ secrets.MAGIC }} -s https://api.nuget.org/v3/index.json --skip-duplicate

- name: Discord WebHook
if: always()
shell: pwsh
env:
GITHUB: ${{ toJson(github) }}
run: |
wget https://raw.githubusercontent.com/Yucked/Scripy/master/Powershell/ActionSend.ps1
pwsh .\ActionSend.ps1 ${{ secrets.WEBHOOK }} ${{ job.status }}

0 comments on commit ee733e9

Please sign in to comment.