forked from sqlitebrowser/sqlitebrowser
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (38 loc) · 1.25 KB
/
release.yml
File metadata and controls
49 lines (38 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Release
on:
workflow_call:
inputs:
NIGHTLY:
default: false
type: boolean
env:
tag_name: ${{ inputs.NIGHTLY == true && 'nightly' || 'continuous' }}
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Delete existing tag and release
uses: dev-drprasad/delete-tag-and-release@v1.1
with:
delete_release: true
github_token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ env.tag_name }}
- run: mkdir target
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: target
- name: Remove unsigned Windows build
run: rm -rfv target/*unsigned*
- run: find target -type f -exec mv -v {} target \;
- name: Unarchive Windows's build artifacts
run: for f in target/*.zip; do unzip -d target/ "$f"; done
- name: Remove archived Windows's build artifacts
run: rm -v target/build-artifacts-*.zip
- name: Release
uses: softprops/action-gh-release@v2
with:
files: target/*
prerelease: true
tag_name: ${{ env.tag_name }}
# For reference: Uploading nightly builds to the nightly server is processed on the nightly server side.