GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - NetChris/workflows: Reusable GitHub workflows for NetChris

BranchesTags
Open more actions menu

Latest commit

 

History

21 Commits
21 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
README.md
README.md
 
 

Repository files navigation

Reusable GitHub workflows for NetChris

dotnet-build-test-pack-push-default.yml

This is a simple build, test, pack and NuGet push for .NET projects. "Default" in that it assumes the dotnet SDK commands build, test, pack and nuget push can be run and all required information is defaulted (e.g. solutions, projects, tests). It also assumes that all NuGet packages that are packed with the dotnet pack SDK command will be pushed to the NuGet registry.

  • If the nuget_source input isn't supplied, the organizational GitHub NuGet registry (https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json) is assumed.

push-dotnet-build-test-pack-push-default.yml

This workflow leverages dotnet-build-test-pack-push-default.yml and allows a simple configuration for push actions, ignoring pushed tags, with packages being pushed to the GitHub NuGet registry:

name: Push

on:
  push:
    branches:    
      - '**'
    tags-ignore:
      - '**'

jobs:
  push:
    permissions:
      checks: write
      contents: read
      packages: write
    uses: NetChris/workflows/.github/workflows/push-dotnet-build-test-pack-push-default.yml@SHA

Note the permissions requirement.

.NET SDK version

To upgrade the .NET SDK version to use for dotnet commands, update the following bit in each file where dotnet is called:

# ...
- name: Setup dotnet
  uses: actions/setup-dotnet@v4
  with:
    dotnet-version: '9.x'
# ...

pre-release-nuget-org.yml

This workflow leverages dotnet-build-test-pack-push-default.yml and allows a simple configuration for pre-release actions, with packages being pushed to NuGet.org:

# Put this in a "publish-nuget-org-pre-release.yml" file
name: Pre-Release - NuGet.org

on:
  release:
    types: [prereleased]

jobs:
  push:
    permissions:
      contents: read
      packages: write
    uses: NetChris/workflows/.github/workflows/pre-release-nuget-org.yml@SHA
    secrets: inherit
  • Note the permissions requirement
  • Note the secrets: inherit requirement
  • Replace SHA with the appropriate SHA version of this repository
  • A similar workflow exists, pre-release-nuget-github.yml, for the GitHub NuGet registry

release-nuget-org.yml

This workflow leverages dotnet-build-test-pack-push-default.yml and allows a simple configuration for release actions, with packages being pushed to NuGet.org:

# Put this in a "publish-nuget-org-release.yml" file
name: Release - NuGet.org

on:
  release:
    types: [released]

jobs:
  push:
    permissions:
      contents: read
      packages: write
    uses: NetChris/workflows/.github/workflows/release-nuget-org.yml@SHA
    secrets: inherit
  • Note the permissions requirement
  • Note the secrets: inherit requirement
  • Replace SHA with the appropriate SHA version of this repository
  • A similar workflow exists, release-nuget-github.yml, for the GitHub NuGet registry

About

Reusable GitHub workflows for NetChris

Topics

github-actions-workflowsnetchris-ci-managed

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.