-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.25 KB
/
install.yml
File metadata and controls
42 lines (40 loc) · 1.25 KB
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
name: InstallPack
'on':
workflow_dispatch: null
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: setup install
run: sudo apt-get install tar gzip
- name: sed shell
run:
cd src/docker;
sed -i 's/\r$//' manifest;
sed -i 's/\r$//' cmd/main;
sed -i 's/\r$//' cmd/uninstall_callback;
tar -czf app.tgz --transform='s,app/,,g' app/docker app/ui config;
tar -czf linker.fpk --exclude='app' *;
mv linker.fpk linker-docker-x64.fpk
- name: create release
id: create_release
uses: GongT/actions-recreate-release@v1
env:
GITHUB_TOKEN: ${{ secrets.ACTIONS_TOKEN }}
with:
tag_name: v1.0.0
release_name: v1.0.0
draft: false
prerelease: false
body: "发布"
- name: upload
id: upload
uses: actions/upload-release-asset@master
env:
GITHUB_TOKEN: ${{ secrets.ACTIONS_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./src/docker/linker-docker-x64.fpk
asset_name: linker-docker-x64.fpk
asset_content_type: application/fpk