File tree 1 file changed +34
-0
lines changed
1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This is a basic workflow to help you get started with Actions
2
+
3
+ name : Upload Release
4
+
5
+ # Controls when the action will run. Triggers the workflow on push or pull request
6
+ # events but only for the master branch
7
+ on :
8
+ release :
9
+ types :
10
+ - created
11
+
12
+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
13
+ jobs :
14
+ # This workflow contains a single job called "build"
15
+ build :
16
+ # The type of runner that the job will run on
17
+ runs-on : ubuntu-latest
18
+
19
+ # Steps represent a sequence of tasks that will be executed as part of the job
20
+ steps :
21
+ - name : Download a Build Artifact
22
+ uses : actions/download-artifact@v2
23
+ with :
24
+ # Destination path
25
+ path : ./release/
26
+ - name : upload release
27
+
28
+ env :
29
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
30
+ with :
31
+ upload_url : ${{ github.event.release.upload_url }}
32
+ asset_path : ./release/
33
+ asset_name : release-${{ github.event.release.tag_name }}.zip
34
+ asset_content_type : application/zip
You can’t perform that action at this time.
0 commit comments