From bf8224eeb0708b3cc23655922b270270c32ac4b3 Mon Sep 17 00:00:00 2001 From: Luca D'Amico Date: Thu, 25 Feb 2021 19:12:30 +0100 Subject: [PATCH] Add autorelease (via GitHub Actions) (#8) * Add autorelease action --- .github/workflows/build.yml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c746ac9..d288883 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,12 +36,13 @@ jobs: run: | tar -czvf NDSFactory_`date +%Y%m%d`__Linux_x86_64.tar.gz NDSFactory ../README.md ../LICENSE - - name: Upload Artifact - uses: actions/upload-artifact@v2 + - name: Release on GitHub + uses: ncipollo/release-action@v1 with: - name: Linux - path: build/NDSFactory_*__Linux_x86_64.tar.gz - if-no-files-found: error + artifacts: "build/NDSFactory_*__Linux_x86_64.tar.gz" + allowUpdates: true + tag: "autobuild" + token: ${{ secrets.GITHUB_TOKEN }} build-macos: runs-on: macos-latest @@ -78,9 +79,10 @@ jobs: run: | zip -r NDSFactory_`date +%Y%m%d`__macOS_x86_64.zip NDSFactory.app ../README.md ../LICENSE - - name: Upload Artifact - uses: actions/upload-artifact@v2 + - name: Release on GitHub + uses: ncipollo/release-action@v1 with: - name: macOS - path: build/NDSFactory_*__macOS_x86_64.zip - if-no-files-found: error + artifacts: "build/NDSFactory_*__macOS_x86_64.zip" + allowUpdates: true + tag: "autobuild" + token: ${{ secrets.GITHUB_TOKEN }}