-
-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (32 loc) · 1013 Bytes
/
build-tgfocus.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
name: build-tgfocus
run-name: Build TG-Focus
on:
push:
branches:
- master
jobs:
job1:
name: Build
runs-on: ubuntu-latest
steps:
- name: Get current date
run: echo "CURR_DATE=$(date +'%Y%m%d')" >> "$GITHUB_ENV"
- uses: actions/checkout@v3
- name: Install Deps
run: sudo apt-get update && sudo apt-get install buildah -y
- name: Prepare TDLib
run: bash oci/fetch-tdlib.bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build TgFocus
run: bash oci/build-app.bash
- name: Package TgFocus
if: contains(github.event.head_commit.message, 'bWFrZS1hcnRpZmFjdAo=') == true
run: bash oci/package-app.bash
- name: OCI Image
if: contains(github.event.head_commit.message, 'bWFrZS1hcnRpZmFjdAo=') == true
uses: actions/upload-artifact@v3
with:
name: tg-focus-ociapp-${{ env.CURR_DATE }}
path: |
tg-focus-ociapp-*