Add autorelease (via GitHub Actions) (#8)

* Add autorelease action
This commit is contained in:
Luca D'Amico 2021-02-25 19:12:30 +01:00 committed by GitHub
parent 439fe70f31
commit bf8224eeb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,12 +36,13 @@ jobs:
run: | run: |
tar -czvf NDSFactory_`date +%Y%m%d`__Linux_x86_64.tar.gz NDSFactory ../README.md ../LICENSE tar -czvf NDSFactory_`date +%Y%m%d`__Linux_x86_64.tar.gz NDSFactory ../README.md ../LICENSE
- name: Upload Artifact - name: Release on GitHub
uses: actions/upload-artifact@v2 uses: ncipollo/release-action@v1
with: with:
name: Linux artifacts: "build/NDSFactory_*__Linux_x86_64.tar.gz"
path: build/NDSFactory_*__Linux_x86_64.tar.gz allowUpdates: true
if-no-files-found: error tag: "autobuild"
token: ${{ secrets.GITHUB_TOKEN }}
build-macos: build-macos:
runs-on: macos-latest runs-on: macos-latest
@ -78,9 +79,10 @@ jobs:
run: | run: |
zip -r NDSFactory_`date +%Y%m%d`__macOS_x86_64.zip NDSFactory.app ../README.md ../LICENSE zip -r NDSFactory_`date +%Y%m%d`__macOS_x86_64.zip NDSFactory.app ../README.md ../LICENSE
- name: Upload Artifact - name: Release on GitHub
uses: actions/upload-artifact@v2 uses: ncipollo/release-action@v1
with: with:
name: macOS artifacts: "build/NDSFactory_*__macOS_x86_64.zip"
path: build/NDSFactory_*__macOS_x86_64.zip allowUpdates: true
if-no-files-found: error tag: "autobuild"
token: ${{ secrets.GITHUB_TOKEN }}