From 5d1301124e400ea7df10ab2bf58df29c15478469 Mon Sep 17 00:00:00 2001 From: Anatolii Sakhnik Date: Tue, 13 Apr 2021 18:54:02 +0300 Subject: [PATCH] Prepare to release 0.0.1-rc2 --- .github/workflows/release-mingw.yml | 19 +++++++++---------- CMakeLists.txt | 2 +- scripts/release.sh | 7 +++++++ 3 files changed, 17 insertions(+), 11 deletions(-) create mode 100755 scripts/release.sh diff --git a/.github/workflows/release-mingw.yml b/.github/workflows/release-mingw.yml index 70ddab5..724e236 100644 --- a/.github/workflows/release-mingw.yml +++ b/.github/workflows/release-mingw.yml @@ -22,19 +22,18 @@ jobs: run: choco install msys2 - name: Install tools and libraries run: | - c:\tools\msys64\usr\bin\bash -l -c "${env:WORKSPACE_MSYS2}/scripts/install-mingw.sh" + .\scripts\run-sh.ps1 "install-mingw.sh" - name: Build run: | - c:\tools\msys64\usr\bin\bash -l -c "${env:WORKSPACE_MSYS2}/scripts/build.sh" + .\scripts\run-sh.ps1 "build.sh" - name: Package run: | - c:\tools\msys64\usr\bin\bash -l -c "${env:WORKSPACE_MSYS2}/scripts/package.sh" + .\scripts\run-sh.ps1 "package.sh" cd dist choco pack - - uses: "marvinpinto/action-automatic-releases@latest" - with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" - prerelease: false - files: | - LICENSE - dist/*.nupkg + cd .. + - name: Release + run: | + .\scripts\run-sh.ps1 "release.sh" + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/CMakeLists.txt b/CMakeLists.txt index cdb3afa..6e63ca7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.10) project(nvim-sdl2) -set(VERSION 0.0.1-rc1) +set(VERSION 0.0.1-rc2) find_package(Threads) find_package(PkgConfig REQUIRED) diff --git a/scripts/release.sh b/scripts/release.sh new file mode 100755 index 0000000..b389201 --- /dev/null +++ b/scripts/release.sh @@ -0,0 +1,7 @@ +#!/bin/bash -e + +if [[ "$WORKSPACE_MSYS2" ]]; then + cd "$WORKSPACE_MSYS2" +fi + +gh release create "${GITHUB_REF#refs/tags/}" dist/*.nupkg