creares release workflow and change build workflow to run on PR

This commit is contained in:
Zamitto
2024-05-18 16:28:44 -03:00
parent 250c6901b7
commit d98a01df2f
2 changed files with 87 additions and 21 deletions

View File

@@ -1,8 +1,6 @@
name: Build
on:
push:
branches: main
on: [pull_request]
jobs:
build:
@@ -66,21 +64,3 @@ jobs:
dist/*.tar.gz
dist/*.yml
dist/*.blockmap
- name: Release
uses: softprops/action-gh-release@v1
with:
draft: true
files: |
dist/*.exe
dist/*.zip
dist/*.dmg
dist/*.AppImage
dist/*.snap
dist/*.deb
dist/*.rpm
dist/*.tar.gz
dist/*.yml
dist/*.blockmap
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}