-
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (30 loc) · 956 Bytes
/
release.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
name: Binary-release
on:
workflow_dispatch:
release:
types: [created]
jobs:
generate:
name: Create release-artifacts
runs-on: ubuntu-20.04
steps:
- name: Checkout the repository
uses: actions/checkout@master
- name: Get version tag from env file
uses: c-py/action-dotenv-to-setenv@v2
with:
env-file: .version
- name: Build and archive
run: build/ci/build.sh ${{ env.VERSION }}
- name: Build and archive (cli version)
run: build/ci/cli-build.sh ${{ env.VERSION }}
- name: Build .deb package
run: build/ci/build-deb.sh ${{ env.VERSION }}
- name: Build .deb package (cli version)
run: build/ci/cli-build-deb.sh ${{ env.VERSION }}
- name: Upload the artifacts
uses: skx/github-action-publish-binaries@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: 'git-syr-*'