-
Notifications
You must be signed in to change notification settings - Fork 80
76 lines (58 loc) · 1.64 KB
/
makefile.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Makefile CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: install
run:
sh install_ubuntu.sh
- name: chmod
run:
chmod -R 777 binshell
- name: make release
run:
sh binshell/make_release.sh
- name: tar
run:
tar -czvf skynet_fly-master.tar.gz skynet-fly-release
- name: Debug List current working directory
run: ls -alh
- name: Debug List the release directory
run: ls -alh skynet_fly-master.tar.gz
- name: pwd
run: pwd
- name: Upload tar as artifact
uses: actions/upload-artifact@master
with:
name: release-artifact
path: skynet_fly-master.tar.gz # 上传压缩文件为artifact
release:
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Download artifact
uses: actions/download-artifact@master
with:
name: release-artifact # 下载构建时上传的 artifact
- name: Debug List files in directory after build
run: ls -alh
- name: pwd
run: pwd
- name: Debug List the release directory
run: ls -alh skynet_fly-master.tar.gz
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
files: skynet_fly-master.tar.gz
tag_name: master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write # 保证GITHUB_TOKEN有足够的权限
packages: write