mirror of
https://github.com/jagandeepbrar/lunasea.git
synced 2026-08-31 12:42:34 +00:00
chore(ci): abstract out build and deployment actions
This commit is contained in:
23
.github/workflows/build_linux.yml
vendored
23
.github/workflows/build_linux.yml
vendored
@@ -3,7 +3,7 @@ name: 'Build Linux'
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
build_number:
|
||||
build-number:
|
||||
required: true
|
||||
type: string
|
||||
|
||||
@@ -12,31 +12,22 @@ on:
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
build_snap:
|
||||
build-snap:
|
||||
name: Snap
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v2
|
||||
- name: Setup Environment
|
||||
uses: JagandeepBrar/LunaSea/.github/actions/prepare_for_build@master
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Install Core Files
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: core_files
|
||||
|
||||
- name: Prepare Build
|
||||
run: echo ${{ secrets.FIREBASE_OPTIONS }} | base64 --decode > lib/firebase_options.dart
|
||||
platform: linux
|
||||
firebase-options: ${{ secrets.FIREBASE_OPTIONS }}
|
||||
|
||||
- name: Build LunaSea
|
||||
uses: snapcore/action-build@v1
|
||||
id: build
|
||||
|
||||
- name: Prepare Artifact
|
||||
run: |
|
||||
mkdir -p output
|
||||
mv ${{ steps.build.outputs.snap }} ${{ github.workspace }}/output/LunaSea-Linux-amd64.snap
|
||||
run: mv ${{ steps.build.outputs.snap }} ${{ github.workspace }}/output/LunaSea-Linux-amd64.snap
|
||||
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
|
||||
Reference in New Issue
Block a user