-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (44 loc) · 1.44 KB
/
deployment.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
name: 'Deployment'
on:
workflow_run:
workflows: ["CI"]
branches: [master, develop]
types:
- completed
jobs:
build_and_deploy:
name: Build and Deploy
runs-on: ubuntu-20.04
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: 'Checkout'
uses: actions/checkout@v3
with:
ref: ${{ github.event.workflow_run.head_branch }}
fetch-depth: 0
- name: 'Pakman'
uses: upmaru/[email protected]
with:
command: 'bootstrap'
env:
ABUILD_PRIVATE_KEY: ${{secrets.ABUILD_PRIVATE_KEY}}
ABUILD_PUBLIC_KEY: ${{secrets.ABUILD_PUBLIC_KEY}}
- name: 'Build APK'
uses: upmaru/[email protected]
with:
entrypoint: /var/lib/pakman/bin/build.sh
- name: 'Archive'
uses: upmaru/[email protected]
with:
entrypoint: /var/lib/pakman/bin/archive.sh
- name: 'Create Deployment'
uses: upmaru/[email protected]
with:
command: 'create_deployment'
archive: 'packages.zip'
env:
WORKFLOW_REF: ${{ github.event.workflow_run.head_branch }}
WORKFLOW_SHA: ${{ github.event.workflow_run.head_sha }}
INSTELLAR_ENDPOINT: ${{secrets.INSTELLAR_ENDPOINT}}
INSTELLAR_PACKAGE_TOKEN: ${{secrets.INSTELLAR_PACKAGE_TOKEN}}
INSTELLAR_AUTH_TOKEN: ${{secrets.INSTELLAR_AUTH_TOKEN}}