Skip to content

Use xresloader/upload-to-github-release #9

Use xresloader/upload-to-github-release

Use xresloader/upload-to-github-release #9

Workflow file for this run

name: Build for Ubuntu
on:
push:
branches:
- main
pull_request:
jobs:
build_ubuntu:
runs-on: ubuntu-22.04 # TODO: Make build on 20.04 Qt 5.12
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Install dependencies for Ubuntu
run: |
sudo apt-get update
sudo apt-get install -y git curl wget zip cmake pkgconf libqt5widgets5 qttools5-dev libkf5windowsystem-dev
- name: Build and package for Ubuntu
run: |
git submodule update --init --recursive
mkdir build ; cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j$(nproc)
make DESTDIR=out install
find out/
zip --symlinks -r ./launch_Ubuntu.zip out/
- name: Upload Ubuntu artifact
uses: actions/upload-artifact@v2
with:
name: launch-artifact-ubuntu
path: build/launch_Ubuntu.zip
- name: Create GitHub Release using Continuous Release Manager
if: github.event_name == 'push' # Only run for push events, not pull requests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
curl -L -o continuous-release-manager-linux https://github.com/probonopd/continuous-release-manager/releases/download/continuous/continuous-release-manager-linux
chmod +x continuous-release-manager-linux
./continuous-release-manager-linux
- name: Upload to GitHub Release
if: github.event_name == 'push' # Only run for push events, not pull requests
uses: xresloader/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "./build/*.zip"
draft: false
verbose: true
branches: main
update_latest_release: true
tag_name: continuous