-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (46 loc) · 1.24 KB
/
build.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
name: Build
on: [pull_request, push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: akerl/action-checkout@v2.3.4
with:
submodules: recursive
- name: Registry auth
run: docker login docker.pkg.github.com -u nobody -p ${{ github.token }}
- name: Make
env:
PKGFORGE_STATEFILE: /tmp/pkgforge
run: make
- name: Release
env:
PKGFORGE_STATEFILE: /tmp/pkgforge
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
if: startsWith(github.ref, 'refs/tags/')
run: make release
- name: Store
uses: akerl/upload-artifact@v2.2.2
with:
name: pkg
path: pkg
- name: Notify on success
if: success()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: akerl/github-action-slack-notify-build@v1.2.0
with:
channel_id: ${{ secrets.SLACK_BOT_CHANNEL }}
status: success
color: good
- name: Notify on failure
if: failure()
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: akerl/github-action-slack-notify-build@v1.2.0
with:
channel_id: ${{ secrets.SLACK_BOT_CHANNEL }}
status: failed
color: danger