Skip to content

Build and upload Linux app artifact #70

Build and upload Linux app artifact

Build and upload Linux app artifact #70

name: Build and upload Linux app artifact
on:
workflow_dispatch:
inputs:
buildBranch:
description: 'Headlamp ref/branch/tag'
required: true
default: 'main'
permissions:
contents: read
jobs:
build-linux:
runs-on: ubuntu-latest
permissions:
actions: write # needed to upload artifacts
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.buildBranch }}
- name: Setup nodejs
uses: actions/setup-node@v4
with:
node-version: 20.x
- uses: actions/setup-go@v5
with:
go-version: '1.22.*'
- name: App linux
run: |
make app-linux
- name: Rename AppImage 64bit version
run: |
FILE_PATH=$(echo app/dist/Headlamp*x86_64*.AppImage); mv ${FILE_PATH} $(echo ${FILE_PATH}|sed s/x86_64/x64/)
- name: Upload Tarball artifacts
uses: actions/upload-artifact@v4
with:
name: Tarballs
path: ./app/dist/Headlamp*.tar.*
if-no-files-found: error
retention-days: 1
- name: Upload AppImage artifacts
uses: actions/upload-artifact@v4
with:
name: AppImages
path: ./app/dist/Headlamp*.AppImage
if-no-files-found: error
retention-days: 1
- name: Upload Debian artifacts
uses: actions/upload-artifact@v4
with:
name: Debian
path: ./app/dist/headlamp*.deb
if-no-files-found: error
retention-days: 1