-
-
Notifications
You must be signed in to change notification settings - Fork 14
43 lines (35 loc) · 1.06 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Release
run-name: "Release Tag: ${{ github.ref_name }}"
on:
push:
tags:
- '*/v*.*.*'
jobs:
create-releae:
name: Build and created tagged release
runs-on: ubuntu-latest
steps:
- name: Split tag
env:
TAG: ${{ github.ref_name }}
id: split
run: |
echo "project=${{ TAG##/* }}" >> $GITHUB_OUTPUT
echo "version=${{ TAG##*/ }}" >> $GITHUB_OUTPUT
- name: Test tag split
run: |
echo ${{ steps.split.outputs.project }}
echo ${{ steps.split.outputs.verison }}
# - name: Checkout source code
# uses: actions/[email protected]
# with:
# fetch-depth: 0
# ref: ${{ github.events.repository.default_branch }}
# - name: Setup dotnet 6.0.x
# uses: actions/[email protected]
# with:
# dotnet-version: '6.0.x'
# - name: Install dependencies
# run: dotnet restore ${{ github.ref_name }}
# - name: Build
# run: dotnet build ${{ github.ref_name }} --configuration Release