-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (47 loc) · 1.68 KB
/
publish.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
name: publish ccx and make tag
on:
workflow_dispatch:
inputs:
tag_name:
description: 'tag name'
required: true
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Create Release Asset
shell: bash
run: |
cd $GITHUB_WORKSPACE
npm i
node build-script/pack-ccx.mjs --version 1.3.2
ls -l
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ github.event.inputs.tag_name }}
release_name: v${{ github.event.inputs.tag_name }}
draft: true
prerelease: false
- name: Upload ZIP
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./Auto.Photoshop.SD.plugin_v${{ github.event.inputs.tag_name }}.zip
asset_name: Auto.Photoshop.SD.plugin_v${{ github.event.inputs.tag_name }}.zip
asset_content_type: application/zip
- name: Upload CCX
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./Auto.Photoshop.SD.plugin_v${{ github.event.inputs.tag_name }}.ccx
asset_name: Auto.Photoshop.SD.plugin_v${{ github.event.inputs.tag_name }}.ccx
asset_content_type: application/zip