summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieuCoder <matthieu@matthieu-dev.xyz>2023-01-04 20:08:14 +0400
committerMatthieuCoder <matthieu@matthieu-dev.xyz>2023-01-04 20:08:14 +0400
commit54b30f314fe2cbac5a058dd5f7c1669c26bc85bb (patch)
tree0266b87788ee42508315e1c2a76c51892f85a542
parente3fa0691ed109049ac5a4c7375f2f2e85bae75d1 (diff)
release job
-rw-r--r--.github/workflows/build.yml29
1 files changed, 28 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 90f5cde..1ededd6 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -36,7 +36,7 @@ jobs:
build_macos:
name: 'Build for MacOS'
- runs-on: macOS-latest
+ runs-on: macos-latest
steps:
- uses: actions/checkout@v2
@@ -179,3 +179,30 @@ jobs:
with:
name: linux_glibc
path: artifacts/*
+
+ release:
+ if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
+ runs-on: ubuntu-latest
+ permissions:
+ contents: write
+ steps:
+ - uses: actions/download-artifact@v3
+ with:
+ name: windows
+ path: windows
+ - uses: actions/download-artifact@v3
+ with:
+ name: linux_glibc
+ path: linux_glibc
+ - uses: actions/download-artifact@v3
+ with:
+ name: macos
+ path: macos
+ - uses: ncipollo/release-action@v1
+ with:
+ artifacts: "windows/*,macos/*,linux_glibc/*"
+ draft: true
+ generateReleaseNotes: true
+ prerelease: true
+ skipIfReleaseExists: true
+ updateOnlyUnreleased: true