]> git.puffer.fish Git - matthieu/nova.git/commitdiff
release job
authorMatthieuCoder <matthieu@matthieu-dev.xyz>
Wed, 4 Jan 2023 16:08:14 +0000 (20:08 +0400)
committerMatthieuCoder <matthieu@matthieu-dev.xyz>
Wed, 4 Jan 2023 16:08:14 +0000 (20:08 +0400)
.github/workflows/build.yml

index 90f5cdeac36b3ae89fa16c4dbea7480a879e1c65..1ededd646f8754d1b9fa6bba0e988e4e7c12f5bd 100644 (file)
@@ -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