File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Manual workflow
2
+
3
+ # Controls when the action will run. Workflow runs when manually triggered using the UI
4
+ # or API.
5
+ on :
6
+ workflow_dispatch :
7
+ # Inputs the workflow accepts.
8
+ inputs :
9
+ name :
10
+ # Friendly description to be shown in the UI instead of 'name'
11
+ description : ' v{major}.{minor}.{patch}-{beta/alpha}'
12
+ # Default value if no value is explicitly provided
13
+ default : ' v1.0.0-alpha'
14
+ # Input has to be provided for the workflow to run
15
+ required : true
16
+ # The data type of the input
17
+ type : string
18
+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
19
+ jobs :
20
+ # This workflow contains a single job called "build"
21
+ build :
22
+ runs-on : ubuntu-latest
23
+ strategy :
24
+ matrix :
25
+ node-version : [ 16.x ]
26
+ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
27
+ steps :
28
+ - uses : actions/checkout@v3
29
+ - name : Use Node.js ${{ matrix.node-version }}
30
+ uses : actions/setup-node@v3
31
+ with :
32
+ node-version : ${{ matrix.node-version }}
33
+ cache : ' npm'
34
+ - name : Install dependencies
35
+ run : npm ci
36
+ - name : Build code
37
+ run : npm run build --if-present
38
+ - name : zip dist folder
39
+ run : zip -r dist.zip dist
40
+ - name : file list
41
+ run : ls
42
+ - name : Upload binaries to release
43
+ uses : svenstaro/upload-release-action@v2
44
+ with :
45
+ repo_token : ${{ secrets.PAT }}
46
+ file : dist.zip
47
+ asset_name : dist.zip
48
+ tag : ${{ inputs.name }}
49
+ overwrite : true
50
+
You can’t perform that action at this time.
0 commit comments