-
Notifications
You must be signed in to change notification settings - Fork 13
92 lines (71 loc) · 3.35 KB
/
release-mac-linux-windows-with-prebuilt-artifacts.yml
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: Release OneKeePass for Mac,Linux and Widows - using prebuilt artifacts
on:
workflow_dispatch:
jobs:
release-okp-from-build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
# This version number should match tag and the version used in tauri.conf.json file
- name: Query version number
run: echo "version=${GITHUB_REF:11}" >> $GITHUB_ENV
#run: echo "version=0.5.0" >> $GITHUB_ENV
- name: Download Linux,Windows x86_64 artifacts
uses: dawidd6/action-download-artifact@v2
with:
#workflow: ${{ github.event.workflow_run.workflow_id }}
workflow: build-linux-windows-with-prebuilt-cljs.yml
workflow_conclusion: success
name: artifacts-x86_64
path: artifacts/x86_64
- name: Download mac aarch64 artifacts
uses: dawidd6/action-download-artifact@v2
with:
workflow: build-mac-with-prebuilt-cljs.yml
workflow_conclusion: success
name: artifacts-mac-aarch64
path: artifacts/aarch64
- name: Download mac x86_64 artifacts
uses: dawidd6/action-download-artifact@v2
with:
workflow: build-mac-with-prebuilt-cljs.yml
workflow_conclusion: success
name: artifacts-mac-x86_64
path: artifacts/x86_64
- name: Create bundles dir
run: mkdir artifacts/bundles
- name: Rename artifacts
run: |
mv "artifacts/aarch64/OneKeePass_${{ env.version }}_aarch64.dmg" "artifacts/bundles/OneKeePass_${{ env.version }}_macos_aarch64.dmg"
mv "artifacts/x86_64/OneKeePass_${{ env.version }}_x64.dmg" "artifacts/bundles/OneKeePass_${{ env.version }}_macos_x86_64.dmg"
mv "artifacts/x86_64/one-kee-pass_${{ env.version }}_amd64.deb" "artifacts/bundles/OneKeePass_${{ env.version }}_linux_x86_64.deb"
mv "artifacts/x86_64/one-kee-pass_${{ env.version }}_amd64.AppImage" "artifacts/bundles/OneKeePass_${{ env.version }}_linux_x86_64.AppImage"
mv "artifacts/x86_64/OneKeePass_${{ env.version }}_x64_en-US.msi" "artifacts/bundles/OneKeePass_${{ env.version }}_windows_x86_64.msi"
- run: ls -al artifacts/bundles
- name: Create checksums
run: |
cd ./artifacts/bundles
sha256sum OneKeePass_${{ env.version }}_macos_aarch64.dmg >> checksums.txt
sha256sum OneKeePass_${{ env.version }}_macos_x86_64.dmg >> checksums.txt
sha256sum OneKeePass_${{ env.version }}_linux_x86_64.deb >> checksums.txt
sha256sum OneKeePass_${{ env.version }}_linux_x86_64.AppImage >> checksums.txt
sha256sum OneKeePass_${{ env.version }}_windows_x86_64.msi >> checksums.txt
cat checksums.txt
- name: Create Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ env.version }}
name: OneKeePass v${{ env.version }}
body: See the assets to download this version and install.
prerelease: false
generate_release_notes: false
files: |
./artifacts/bundles/*.dmg
./artifacts/bundles/*.deb
./artifacts/bundles/*.AppImage
./artifacts/bundles/*.msi
./artifacts/bundles/checksums.txt