Files
lunasea/.github/workflows/build_linux.yml
2022-04-06 12:16:13 -04:00

37 lines
871 B
YAML

name: 'Build Linux'
on:
workflow_call:
inputs:
build-number:
required: true
type: string
secrets:
FIREBASE_TOKEN:
required: true
jobs:
build-snapcraft:
name: Snapcraft
runs-on: ubuntu-latest
steps:
- name: Setup Environment
uses: JagandeepBrar/LunaSea/.github/actions/prepare_for_build@master
with:
firebase-token: ${{ secrets.FIREBASE_TOKEN }}
platform: linux
- name: Build LunaSea
uses: snapcore/action-build@v1
id: build
- name: Prepare Artifact
run: mv ${{ steps.build.outputs.snap }} ${{ github.workspace }}/output/lunasea-linux-amd64.snap
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: linux-snapcraft
path: ${{ github.workspace }}/output