Skip to content

wip

wip #33

Workflow file for this run

name: CI/CD
on:
push:
workflow_dispatch:
defaults:
run:
shell: pwsh
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
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 = context.ref.replace(/\/refs\/tags\//, '');
github.rest.repos.createRelease({
owner,
repo,
tag_name,
name: "Release " + tag_name,
body: "TODO",
draft: true,
});