-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (50 loc) · 1.3 KB
/
Ubuntu.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
name: Ubuntu Make
on:
push:
paths-ignore:
- '**.md'
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: gcc
run: g++ ./main.cpp -o main -pthread
- name: check
run: |
cp main Zff-Ubuntu-x86_64
ls
# tag 查询github-Release
# 上传artifacts
- uses: actions/upload-artifact@v3
with:
name: Zff-Ubuntu
path: |
main
usr/
# tag 上传Release
- uses: montudor/action-zip@v1
with:
args: zip -qq -r data.zip usr
- uses: montudor/action-zip@v1
with:
args: zip -qq -r linux.zip Zff-Ubuntu-x86_64 usr LICENCE README.md
- name: uploadRelease
if: startsWith(github.event.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: linux.zip
asset_name: Zff-Ubuntu-x86_64.zip
tag: ${{ github.ref }}
overwrite: true
- name: upload Release (usr/ data)
if: startsWith(github.event.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: data.zip
asset_name: data.zip
tag: ${{ github.ref }}
overwrite: true