Skip to content

Commit 8f720c9

Browse files
author
sqooba_benoit
committed
Move actions to release workflow
1 parent b0cd22d commit 8f720c9

File tree

2 files changed

+19
-63
lines changed

2 files changed

+19
-63
lines changed

.github/workflows/release-desktop.yml

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -68,31 +68,37 @@ jobs:
6868
run: |
6969
mkdir ${GITHUB_WORKSPACE}/artifacts
7070
71+
- name: Find Alephuim-*.exe file
72+
if: startsWith(matrix.os, 'windows')
73+
id: get-exefile
74+
run: echo "exefile=$(find . -name 'Alephium-*.exe')" >> $GITHUB_OUTPUT
75+
shell: bash
76+
7177
- name: Sign Artifact with CodeSignTool
7278
uses: sslcom/esigner-codesign@develop
7379
if: startsWith(matrix.os, 'windows')
7480
with:
75-
# Sign and timestamp code object.
7681
command: sign
77-
# SSL.com account username
7882
username: ${{ secrets.ES_USERNAME }}
79-
# SSL.com account password.
8083
password: ${{ secrets.ES_PASSWORD }}
81-
# Credential ID for signing certificate.
8284
credential_id: ${{ secrets.CREDENTIAL_ID }}
83-
# OAuth TOTP Secret (https://www.ssl.com/how-to/automate-esigner-ev-code-signing)
8485
totp_secret: ${{ secrets.ES_TOTP_SECRET }}
85-
# Path of code object to be signed. (DLL, JAR, EXE, MSI files vb... )
86-
file_path: 'apps/desktop-wallet/Alephium*.exe'
87-
# Directory where signed code object(s) will be written.
86+
file_path: ${{ steps.get-exefile.outputs.exefile }}
8887
output_path: ${GITHUB_WORKSPACE}/artifacts
89-
# Scan code before sign
9088
malware_block: false
91-
# Environment Name, For Production 'PROD' or For Staging 'TEST'
9289
environment_name: PROD
9390

94-
- name: Upload Signed Files
91+
- name: Find Alephium-*.exe signed file
92+
if: startsWith(matrix.os, 'windows')
93+
id: get-signedfile
94+
run: |
95+
echo "file=$(find ${GITHUB_WORKSPACE}/artifacts -name 'Alephium-*.exe')" >> $GITHUB_OUTPUT
96+
echo "filename=$(find ${GITHUB_WORKSPACE}/artifacts -name 'Alephium-*.exe' | xargs basename)" >> $GITHUB_OUTPUT
97+
shell: bash
98+
99+
- name: Upload Signed Alephuim-*.exe
95100
uses: actions/upload-artifact@v2
101+
if: startsWith(matrix.os, 'windows')
96102
with:
97-
name: Alephium-signed.exe
98-
path: ./artifacts/Alephium*.exe
103+
name: signed-${{ steps.get-signedfile.outputs.filename }}
104+
path: ${{ steps.get-signedfile.outputs.file }}

.github/workflows/test.yml

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -57,53 +57,3 @@ jobs:
5757
run: cd apps/desktop-wallet && pnpm run ci:build:electron:${{ steps.get-os.outputs.os }}
5858
env:
5959
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60-
61-
- name: Create Artifacts Directory
62-
if: startsWith(matrix.os, 'windows')
63-
shell: bash
64-
run: |
65-
mkdir ${GITHUB_WORKSPACE}/artifacts
66-
67-
- name: Find Alephuim-*.exe file
68-
if: startsWith(matrix.os, 'windows')
69-
id: get-exefile
70-
run: echo "exefile=$(find . -name 'Alephium-*.exe')" >> $GITHUB_OUTPUT
71-
shell: bash
72-
73-
- name: Sign Artifact with CodeSignTool
74-
uses: sslcom/esigner-codesign@develop
75-
if: startsWith(matrix.os, 'windows')
76-
with:
77-
# Sign and timestamp code object.
78-
command: sign
79-
# SSL.com account username
80-
username: ${{ secrets.ES_USERNAME }}
81-
# SSL.com account password.
82-
password: ${{ secrets.ES_PASSWORD }}
83-
# Credential ID for signing certificate.
84-
credential_id: ${{ secrets.CREDENTIAL_ID }}
85-
# OAuth TOTP Secret (https://www.ssl.com/how-to/automate-esigner-ev-code-signing)
86-
totp_secret: ${{ secrets.ES_TOTP_SECRET }}
87-
# Path of code object to be signed. (DLL, JAR, EXE, MSI files vb... )
88-
file_path: ${{ steps.get-exefile.outputs.exefile }}
89-
# Directory where signed code object(s) will be written.
90-
output_path: ${GITHUB_WORKSPACE}/artifacts
91-
# Scan code before sign
92-
malware_block: false
93-
# Environment Name, For Production 'PROD' or For Staging 'TEST'
94-
environment_name: PROD
95-
96-
- name: Find Alephuim-*.exe signed file
97-
if: startsWith(matrix.os, 'windows')
98-
id: get-signedfile
99-
run: |
100-
echo "file=$(find ${GITHUB_WORKSPACE}/artifacts -name 'Alephium-*.exe')" >> $GITHUB_OUTPUT
101-
echo "filename=$(find ${GITHUB_WORKSPACE}/artifacts -name 'Alephium-*.exe' | xargs basename)" >> $GITHUB_OUTPUT
102-
shell: bash
103-
104-
- name: Upload Signed Alephuim-*.exe
105-
uses: actions/upload-artifact@v2
106-
if: startsWith(matrix.os, 'windows')
107-
with:
108-
name: signed-${{ steps.get-signedfile.outputs.filename }}
109-
path: ${{ steps.get-signedfile.outputs.file }}

0 commit comments

Comments
 (0)