From e383aff8a814a6c89265580e3dec931f7b2ffa8f Mon Sep 17 00:00:00 2001 From: FantasticFiasco Date: Sun, 24 Mar 2024 23:18:20 +0100 Subject: [PATCH] wip --- .github/workflows/ci-cd.yml | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 7491c434..d9944d7e 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -12,21 +12,27 @@ jobs: build: runs-on: windows-latest steps: - # - uses: actions/checkout@v4 - # - uses: actions/setup-dotnet@v4 - # with: - # dotnet-version: 8.x - # - run: build\build.ps1 - # - uses: actions/upload-artifact@v4 - # with: - # name: nuget - # path: artifacts + - uses: actions/checkout@v4 + - uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.x + - run: build\build.ps1 + - uses: actions/upload-artifact@v4 + with: + name: nuget + path: artifacts + + release: + needs: build + if: startsWith(github.ref, 'refs/tags/v') + runs-on: windows-latest + steps: - uses: actions/github-script@v7 with: script: | const owner = context.repo.owner; const repo = context.repo.repo; - const tag_name = "test"; + const tag_name = context.ref.replace(/\/refs\/tags\//, ''); github.rest.repos.createRelease({ owner,