mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
ci: temporarily save release from branch to affine-releases (#5455)
This commit is contained in:
24
.github/workflows/release-desktop.yml
vendored
24
.github/workflows/release-desktop.yml
vendored
@@ -353,10 +353,10 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
RELEASE_VERSION: ${{ needs.before-make.outputs.RELEASE_VERSION }}
|
RELEASE_VERSION: ${{ needs.before-make.outputs.RELEASE_VERSION }}
|
||||||
- name: Create Release Draft
|
- name: Create Release Draft
|
||||||
|
if: ${{ github.ref_type == 'tag' }}
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
name: ${{ needs.before-make.outputs.RELEASE_VERSION }}
|
name: ${{ needs.before-make.outputs.RELEASE_VERSION }}
|
||||||
tag_name: ${{ (github.ref_type == 'tag' && github.ref_name) || needs.before-make.outputs.RELEASE_VERSION }}
|
|
||||||
body: ''
|
body: ''
|
||||||
draft: ${{ github.event.inputs.is-draft }}
|
draft: ${{ github.event.inputs.is-draft }}
|
||||||
prerelease: ${{ github.event.inputs.is-pre-release }}
|
prerelease: ${{ github.event.inputs.is-pre-release }}
|
||||||
@@ -368,3 +368,25 @@ jobs:
|
|||||||
./*.AppImage
|
./*.AppImage
|
||||||
./*.apk
|
./*.apk
|
||||||
./*.yml
|
./*.yml
|
||||||
|
- name: Create Nightly Release Draft
|
||||||
|
if: ${{ github.ref_type == 'branch' }}
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
||||||
|
with:
|
||||||
|
# Temporarily, treat release from branch as nightly release, artifact saved to AFFiNE-Releases.
|
||||||
|
# Need to improve internal build and nightly release logic.
|
||||||
|
repository: 'toeverything/AFFiNE-Releases'
|
||||||
|
name: ${{ needs.before-make.outputs.RELEASE_VERSION }}
|
||||||
|
tag_name: ${{ needs.before-make.outputs.RELEASE_VERSION }}
|
||||||
|
body: ''
|
||||||
|
draft: false
|
||||||
|
prerelease: true
|
||||||
|
files: |
|
||||||
|
./VERSION
|
||||||
|
./*.zip
|
||||||
|
./*.dmg
|
||||||
|
./*.exe
|
||||||
|
./*.AppImage
|
||||||
|
./*.apk
|
||||||
|
./*.yml
|
||||||
|
|||||||
Reference in New Issue
Block a user