-
Notifications
You must be signed in to change notification settings - Fork 9
95 lines (90 loc) · 2.42 KB
/
publish.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: Publish
on:
push:
tags:
- '*'
workflow_dispatch:
jobs:
publish-ubuntu:
name: Publish binaries (Ubuntu)
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
-
name: Run build action
uses: "./.github/actions/build"
with:
target-distro: ubuntu
-
name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/nody-greeter.deb
asset_name: nody-greeter-$tag-ubuntu.deb
tag: ${{ github.ref }}
overwrite: true
publish-debian:
name: Publish binaries (Debian)
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
-
name: Run build action
uses: "./.github/actions/build"
with:
target-distro: debian
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/nody-greeter.deb
asset_name: nody-greeter-$tag-debian.deb
tag: ${{ github.ref }}
overwrite: true
# This may be rewritten to not use external workflows
publish-void:
name: Publish binaries (Void)
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
-
name: Dispatch void-linux build
uses: the-actions-org/workflow-dispatch@v4
with:
workflow: build.yml
repo: JezerM/nody-greeter-void
ref: master
token: ${{ secrets.PERSONAL_TOKEN }}
inputs: "{}"
wait-for-completion: true
-
name: Download artifact
uses: dawidd6/action-download-artifact@v2
with:
repo: JezerM/nody-greeter-void
github_token: ${{ secrets.PERSONAL_TOKEN }}
workflow: build.yml
branch: master
path: artifacts/
-
name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
file: artifacts/**/*.xbps
file_glob: true
overwrite: true