Create tag #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1 | |
with: | |
egress-policy: audit | |
- name: 🛒 Checkout | |
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 | |
with: | |
fetch-depth: 0 | |
- name: 🧰 Setup .NET | |
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4.0.0 | |
with: | |
global-json-file: global.json | |
- name: 🛠️ Setup Nerdbank.GitVersioning | |
run: dotnet tool install --tool-path . nbgv | |
- name: 🏷️ Tag release | |
run: ./nbgv tag | |
- name: 🚀 Push Git tags | |
run: git push --tags |