Skip to content

Create tag

Create tag #20

Workflow file for this run

name: Create tag
on:
workflow_dispatch:
env:
DOTNET_GENERATE_ASPNET_CERTIFICATE: false
DOTNET_NOLOGO: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
permissions:
contents: read
jobs:
create-tag:
if: github.actor == 'skarllot'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: 🛡️ Harden Runner
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
*.azureedge.net:443
aka.ms:443
github.com:443
api.nuget.org:443
builds.dotnet.microsoft.com:443
ci.dot.net:443
- name: 🛒 Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: 🧰 Setup .NET
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
with:
global-json-file: global.json
- name: 🛠️ Setup Nerdbank.GitVersioning
run: dotnet tool restore
- name: 🏷️ Tag release
run: dotnet nbgv tag
- name: 🚀 Push Git tags
run: git push --tags