-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (48 loc) · 1.69 KB
/
Copy pathrelease.yml
File metadata and controls
57 lines (48 loc) · 1.69 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
50
51
52
53
54
55
56
57
name: Release
on:
push:
tags: [ 'v*' ]
jobs:
build-linux:
uses: ./.github/workflows/build-linux.yml
build-windows:
uses: ./.github/workflows/build-windows.yml
publish:
needs: [ build-linux, build-windows ]
runs-on: ubuntu-latest
steps:
- name: Download Linux artifact
uses: actions/download-artifact@v7
with:
name: REDasm-linux-x86_64
- name: Download Windows artifact
uses: actions/download-artifact@v7
with:
name: REDasm-windows-x86_64
path: redasm-windows-x86_64/
- name: Package Windows
run: zip -r REDasm-windows-x86_64.zip redasm-windows-x86_64/
- name: Sign artifacts
env:
GPG_PRIVATE_KEY: ${{ secrets.RD_GPG_PRIVATE_KEY }}
GPG_PASSPHRASE: ${{ secrets.RD_GPG_PASSPHRASE }}
run: |
echo "$GPG_PRIVATE_KEY" | gpg --batch --import
echo "$GPG_PASSPHRASE" | gpg --batch --pinentry-mode loopback \
--passphrase-fd 0 --detach-sign --armor REDasm-linux-x86_64.AppImage
echo "$GPG_PASSPHRASE" | gpg --batch --pinentry-mode loopback \
--passphrase-fd 0 --detach-sign --armor REDasm-windows-x86_64.zip
- name: Publish release
uses: softprops/action-gh-release@v3
with:
token: ${{ secrets.RD_WORKSPACE_CI_TOKEN }}
repository: redasm-dev/redasm
tag_name: ${{ github.ref_name }}
name: "REDasm ${{ github.ref_name }}"
prerelease: false
draft: true
files: |
REDasm-linux-x86_64.AppImage
REDasm-linux-x86_64.AppImage.asc
REDasm-windows-x86_64.zip
REDasm-windows-x86_64.zip.asc