This repository has been archived by the owner on Aug 3, 2024. It is now read-only.
configurable watch position #46
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Make Release | |
on: | |
push: | |
tags: | |
- 'v1.**' | |
env: | |
APPID: WlxOverlay | |
APPDIR: WlxOverlay.AppDir | |
jobs: | |
make_release: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Prepare Environment | |
run: | | |
sudo add-apt-repository -syn universe | |
sudo add-apt-repository -syn ppa:pipewire-debian/pipewire-upstream | |
sudo apt-get update | |
sudo apt-get install fuse dotnet-sdk-6.0 liblttng-ust0 cmake clang-10 | |
sudo apt-get install libxcb1 libxcb1-dev libxcb-randr0 libxcb-randr0-dev libxcb-shm0 libxcb-shm0-dev libxcb-xinerama0 libxcb-xinerama0-dev libpipewire-0.3-0 libpipewire-0.3-dev libspa-0.2-dev | |
test -f linuxdeploy-x86_64.AppImage || wget -q "https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage" | |
chmod +x linuxdeploy-x86_64.AppImage | |
sudo ln -s /usr/include/pipewire-0.3/pipewire /usr/include/pipewire | |
sudo ln -s /usr/include/spa-0.2/spa /usr/include/spa | |
test -d ${APPDIR} && rm -rf ${APPDIR} | |
mkdir -p ${APPDIR}/usr/bin | |
- name: Dotnet Publish | |
run: | | |
./prebuild.sh | |
dotnet publish -c Release --sc -r linux-x64 -o ${APPDIR}/usr/bin ${APPID}.csproj | |
chmod +x ${APPDIR}/usr/bin/${APPID} | |
- name: Package AppImage | |
run: | | |
export VERSION=$(cat Resources/version.txt) | |
./linuxdeploy-x86_64.AppImage -dAppRun.desktop -iWlxOverlay.png --appdir=${APPDIR} --output appimage --exclude-library '*libpipewire*' | |
mv WlxOverlay-$VERSION-x86_64.AppImage WlxOverlay-x86_64.AppImage | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.RELEASE_KEY }} | |
with: | |
tag_name: ${{ github.ref_name }} | |
release_name: WlxOverlay ${{ github.ref_name }} | |
draft: true | |
prerelease: false | |
- name: Upload AppImage | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.RELEASE_KEY }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./WlxOverlay-x86_64.AppImage | |
asset_name: WlxOverlay-${{ github.ref_name }}-x86_64.AppImage | |
asset_content_type: application/octet-stream | |