-
Notifications
You must be signed in to change notification settings - Fork 14
44 lines (37 loc) · 1.04 KB
/
draft.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
name: Release package to Github
on:
push:
tags:
- 'v*'
jobs:
build-binary:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: addnab/docker-run-action@v3
with:
image: utdemir/ghc-musl:v24-ghc922
options: -v ${{ github.workspace }}:/mnt
run: |
cd /mnt
sh build.static.sh
- name: Change owner before compression
run: sudo chown $USER:$USER dotenv
- name: Compress binary
uses: svenstaro/upx-action@v2
with:
file: dotenv
args: --best --lzma
strip: true
- name: Rename binary file
run: cp dotenv dotenv-${{ github.ref_name }}-linux-x86_64-bin
- name: Create release with package assets
uses: softprops/action-gh-release@v1
with:
body_path: CHANGELOG.md
files: |
dotenv-${{ github.ref_name }}-linux-x86_64-bin
draft: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}