-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1.14 KB
/
test-create-assets.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
name: Test - Create Assets
on:
workflow_dispatch:
jobs:
test:
permissions: write-all
runs-on: [macos-latest]
steps:
- name: setup
id: setup
run: |
echo dmg_path="${GITHUB_WORKSPACE}/example.dmg" >> ${GITHUB_OUTPUT}
echo zip_path="${GITHUB_WORKSPACE}/example.zip" >> ${GITHUB_OUTPUT}
- name: download dmg
run: |
curl "https://github.com/miyako/4d-template-component-cicd/releases/download/patch-0.0.2/example.dmg" -o "${dmg_path}" -sL
env:
dmg_path: ${{ steps.setup.outputs.dmg_path }}
- name: create
id: create
uses: miyako/4D/.github/actions/deployment-create-zip@v1
with:
dmg_path: ${{ steps.setup.outputs.dmg_path }}
zip_path: ${{ steps.setup.outputs.zip_path }}
- name: upload assets
id: upload
uses: miyako/4D/.github/actions/deployment-release-assets@v1
with:
dmg_path: ${{ steps.setup.outputs.dmg_path }}
zip_path: ${{ steps.setup.outputs.zip_path }}
tag_name: "test"
release_name: "test"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}