-
Notifications
You must be signed in to change notification settings - Fork 16
47 lines (42 loc) · 1.16 KB
/
releases-package.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
name: Releases Packages
on:
push:
tags:
- v*
workflow_dispatch:
jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependent
run: |
make dependent
- name: Config Github
run: |
git config --global user.email "noreply@github.com"
git config --global user.name "GitHub"
- name: Checkout
run: |
make $(basename ${GITHUB_REF})
- name: Build binaries
run: |
make build-binaries
- name: Package rpm
run: |
make pkg-rpm
- name: Sync repository
env:
BRANCH_PREFIX: "rpm-"
REPOS: "rpm"
run: |
GH_TOKEN="${GH_TOKEN:-${{ secrets.GITHUB_TOKEN }}}" SOURCE="${SOURCE:-https://github.com/${{ github.repository }}}" make repos-sync
- name: Package deb
run: |
make pkg-deb
- name: Sync repository
env:
BRANCH_PREFIX: "deb-"
REPOS: "deb"
run: |
GH_TOKEN="${GH_TOKEN:-${{ secrets.GITHUB_TOKEN }}}" SOURCE="${SOURCE:-https://github.com/${{ github.repository }}}" make repos-sync