forked from nuxt/movies
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 1.29 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
name: 'Deployment'
on:
push:
branches:
- main
- master
- develop
jobs:
build_and_deploy:
name: Build and Deploy
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v3
with:
ref: ${{ github.event.workflow_run.head_branch }}
fetch-depth: 0
- name: 'Pakman'
uses: upmaru/pakman@alpine-3.18-7.4
with:
command: 'bootstrap'
env:
ABUILD_PRIVATE_KEY: ${{secrets.ABUILD_PRIVATE_KEY}}
ABUILD_PUBLIC_KEY: ${{secrets.ABUILD_PUBLIC_KEY}}
- name: 'Build APK'
uses: upmaru/pakman@alpine-3.18-7.4
with:
entrypoint: /var/lib/pakman/bin/build.sh
- name: 'Archive'
uses: upmaru/pakman@alpine-3.18-7.4
with:
entrypoint: /var/lib/pakman/bin/archive.sh
- name: 'Create Deployment'
uses: upmaru/pakman@alpine-3.18-7.4
with:
command: 'create_deployment'
archive: 'packages.zip'
env:
WORKFLOW_REF: ${{ github.ref }}
WORKFLOW_SHA: ${{ github.sha }}
INSTELLAR_ENDPOINT: https://sandbox.opsmaru.dev
INSTELLAR_PACKAGE_TOKEN: ${{secrets.INSTELLAR_PACKAGE_TOKEN}}
INSTELLAR_AUTH_TOKEN: ${{secrets.INSTELLAR_AUTH_TOKEN}}