-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (48 loc) · 1.38 KB
/
test.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
name: test-workflow x64
on:
workflow_dispatch:
inputs:
must_sign:
required: false
type: boolean
default: false
jobs:
call-build-electron:
uses: ./.github/workflows/build-electron.yml
secrets: inherit
with:
must_sign: ${{ inputs.must_sign }}
# upload the artifacts
upload-assets:
needs: call-build-electron
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Download previously uploaded artifacts
- uses: actions/download-artifact@v3
with:
name: all-happ-artifact
path: artifacts
# Display artifacts folder
- name: Display artifacts folder
run: ls
working-directory: artifacts
# Delete .exe release asset
- name: Delete .exe release asset
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
working-directory: artifacts
run: |
gh release delete-asset "workflow-test" Snapmail*.exe -y
# upload all artifacts
- name: upload all artifacts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
working-directory: artifacts
run: |
rm -f *.blockmap
echo snapmail*
gh release upload "workflow-test" snapmail* --clobber
echo Snapmail*
gh release upload "workflow-test" Snapmail* --clobber