-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 1.21 KB
/
build_deb.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
name: Repository Dispatch
on:
repository_dispatch:
types: [build_deb]
jobs:
buildEvent:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: make-deb-${{ github.event.client_payload.pkgname }}
run: make build-${{ github.event.client_payload.pkgname }} PKGVERSION=${{ github.event.client_payload.version }} IMAGE_SRC=${{ github.event.client_payload.image_src }}
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: deb
path: pkg/*.deb
- name: Create a Release
uses: meeDamian/[email protected]
with:
token: ${{ secrets.CALAOS_REL_TOKEN }}
tag: ${{ github.event.client_payload.pkgname }}-${{ github.event.client_payload.version }}
name: ${{ github.event.client_payload.pkgname }} - ${{ github.event.client_payload.version }}
prerelease: ${{ github.event.client_payload.prerelease == true }}
files: pkg/*.deb
gzip: false
- name: Update repo cache
uses: distributhor/workflow-webhook@v3
env:
webhook_url: ${{ secrets.DEB_REPO_WEBHOOK_URL }}
webhook_secret: ${{ secrets.DEB_REPO_WEBHOOK_SECRET }}