83 lines
2.8 KiB
YAML
83 lines
2.8 KiB
YAML
name: Build NuGet
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: 10.0.x
|
|
|
|
- name: Restore
|
|
run: dotnet restore
|
|
|
|
- name: Build
|
|
run: dotnet build -c Release
|
|
|
|
- name: Pack
|
|
run: dotnet pack -c Release -o ./packages
|
|
|
|
- name: Publish
|
|
run: |
|
|
dotnet nuget push ./packages/*.nupkg \
|
|
--source http://192.168.1.4:3000/api/packages/Ronnie/nuget/index.json \
|
|
# --api-key ${{ secrets.NUGET_KEY }}
|
|
|
|
# name: Gitea Actions Demo
|
|
# run-name: ${{ gitea.actor }} is testing out Gitea Actions
|
|
# on: [push]
|
|
|
|
# jobs:
|
|
# Explore-Gitea-Actions:
|
|
# runs-on: ubuntu-latest
|
|
# steps:
|
|
# - run: echo " The job was automatically triggered by a ${{ gitea.event_name }} event."
|
|
# - run: echo " This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
|
# - run: echo " The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
|
# - name: Checkout
|
|
# uses: actions/checkout@v3
|
|
# # with:
|
|
# # repository: Ronnie/SjkScripts
|
|
# # token: ${{ gitea.token }}
|
|
# # github-server-url: http://192.168.1.4:3000
|
|
# - run: echo " The ${{ gitea.repository }} repository has been cloned to the runner."
|
|
# - run: echo " The workflow is now ready to test your code on the runner."
|
|
# - name: List files in the repository
|
|
# run: |
|
|
# ls ${{ gitea.workspace }}
|
|
# - run: echo " This job's status is ${{ job.status }}."
|
|
# - run: echo " HELP ME, I'M A GITHUB ACTION."
|
|
# - run: echo " HELP ME PLEASE."
|
|
# - run: echo " I'M SO TIRED."
|
|
# - run: echo " 9999999."
|
|
# name: Gitea Actions Demo
|
|
# run-name: ${{ gitea.actor }} is testing out Gitea Actions
|
|
# on: [push]
|
|
|
|
# jobs:
|
|
# Explore-Gitea-Actions:
|
|
# runs-on: ubuntu-latest
|
|
# steps:
|
|
# - run: echo " The job was automatically triggered by a ${{ gitea.event_name }} event."
|
|
# - run: echo " This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
|
# - run: echo " The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
|
|
# - name: Check out repository code
|
|
# run: |
|
|
# git clone http://192.168.1.4:3000/Ronnie/SjkScripts.git
|
|
# - run: echo " The ${{ gitea.repository }} repository has been cloned to the runner."
|
|
# - run: echo " The workflow is now ready to test your code on the runner."
|
|
# - name: List files in the repository
|
|
# run: |
|
|
# ls ${{ gitea.workspace }}
|
|
# - run: echo " This job's status is ${{ job.status }}."
|
|
# - run: echo " HELP ME, I'M A GITHUB ACTION."
|
|
|