-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (39 loc) · 1.13 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Build AppImage
on:
workflow_dispatch:
schedule:
- cron: "0 3 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y libfuse2
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Build AppImage
id: build-appimage
run: |
./build.sh
- uses: mukunku/[email protected]
id: checkTag
with:
tag: "v${{ env.CONAN_VERSION }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload AppImage
if: steps.checkTag.outputs.exists == 'false'
uses: marvinpinto/action-automatic-releases@latest
with:
automatic_release_tag: v${{ env.CONAN_VERSION }}
title: "Conan v${{ env.CONAN_VERSION }}"
files: conan-${{ env.CONAN_VERSION }}-x86_64.AppImage
repo_token: ${{ secrets.GITHUB_TOKEN }}
prerelease: false