From f6db843d73f4a008de9322a82704d0b1fa1ab4d4 Mon Sep 17 00:00:00 2001 From: Aptivi CEO Date: Sun, 18 Feb 2024 09:39:25 +0300 Subject: [PATCH] add - ptp - Draft preparation workflow added --- This is a prototype workflow the making the draft when the tag is pushed. --- Type: add Breaking: False Doc Required: False Part: 1/1 --- .github/workflows/prepdraft.yml | 36 +++++++++++++++++++++++++++++++++ tools/docgen-pack.cmd | 1 - 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/prepdraft.yml diff --git a/.github/workflows/prepdraft.yml b/.github/workflows/prepdraft.yml new file mode 100644 index 0000000..de6bcae --- /dev/null +++ b/.github/workflows/prepdraft.yml @@ -0,0 +1,36 @@ +name: Prepare release draft + +on: + push: + tags: + - '**' + +jobs: + build: + + runs-on: windows-latest + + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ github.ref }} + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '8.0.x' + - name: Setup docfx + uses: crazy-max/ghaction-chocolatey@v3 + with: + args: install docfx + - name: Release Asset Preparation + run: | + cd tools && build.cmd && cd .. + cd tools && pack.cmd && cd .. + cd tools && docgen.cmd && cd .. + cd tools && docgen-pack.cmd && cd .. + - name: Release Draft Making + uses: softprops/action-gh-release@v1 + with: + body: "This is a draft release. Fill this with a release snippet from the release sheet made internally." + files: | + tools\*.zip diff --git a/tools/docgen-pack.cmd b/tools/docgen-pack.cmd index 3309565..eafff60 100644 --- a/tools/docgen-pack.cmd +++ b/tools/docgen-pack.cmd @@ -19,4 +19,3 @@ echo Build and pack successful. goto :finished :finished -pause