-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 1 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
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: Checkout
run: |
make $(basename ${GITHUB_REF})
- name: Build binaries
run: |
make build
- 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