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 fetch-depth: 0 - name: Restore run: dotnet restore - name: Install GitVersion uses: gittools/actions/gitversion/setup@v0 with: versionSpec: '5.x' - name: Determine Version id: gitversion uses: gittools/actions/gitversion/execute@v0 - name: Build run: dotnet build -c Release - name: Pack run: | dotnet pack \ -p:PackageVersion=${{ steps.gitversion.outputs.semVer }} \ -c Release - name: Publish run: | dotnet nuget push ./bin/Release/*.nupkg \ --source "http://192.168.1.4:3000/api/packages/Ronnie/nuget/index.json" \ --api-key "${{ secrets.NUGET_KEY }}" \ --skip-duplicate --allow-insecure-connections true \ # 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." #e59e39d60f30b539ae594d8cfc7a9771883d2eb0