Skip to content

Commit

Permalink
Update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
problematicconsumer committed Sep 11, 2023
1 parent ff570f9 commit 1889c16
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Release
on:
push:
branches:
- main
tags:
- "v*"
paths-ignore:
Expand Down Expand Up @@ -77,6 +79,31 @@ jobs:
name: artifact
path: bin/

upload-prerelease:
permissions: write-all
if: ${{ github.ref_type=='branch' }}
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
with:
name: artifact
path: bin/

- name: Display Files Structure
run: ls -R
working-directory: bin

- name: Create or Update Draft Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: ./bin/*
name: "draft"
tag_name: "draft"
prerelease: true

upload-release:
permissions: write-all
if: ${{ github.ref_type=='tag' }}
Expand All @@ -95,6 +122,8 @@ jobs:
- name: Upload Release
uses: softprops/action-gh-release@v1
if: ${{ success() }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
files: bin/*
Expand Down

0 comments on commit 1889c16

Please sign in to comment.