Skip to content

Create tag

Create tag #9

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
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@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
aka.ms:443
api.nuget.org:443
dotnetcli.azureedge.net:443
github.com:443
- name: 🛒 Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: 🧰 Setup .NET
uses: actions/setup-dotnet@3e891b0cb619bf60e2c25674b222b8940e2c1c25 # v4.1.0
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