Skip to content

Deployment

Deployment #223

Workflow file for this run

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}}