forked from Murmele/Gittyup
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (35 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
# https://docs.github.com/en/actions/learn-github-actions/contexts
---
name: Gittyup
on:
push:
branches:
- master
pull_request:
page_build:
workflow_dispatch:
env:
IS_RELEASE: ${{ github.event_name == 'push' && github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/gittyup_v') }}
jobs:
appimage:
name: AppImage
runs-on: ubuntu-20.04
container:
image: ubuntu:xenial
steps:
- name: Install prerequisites
run: |
apt-get -y update
apt-get -y install git software-properties-common build-essential sudo python3-pip
- name: Build AppImage
run: |
git clone https://github.com/probonopd/Gittyup/ # FIXME: Use variables
cd Gittyup
bash -ex appimage-builder/build.sh
- name: Create release and upload
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
wget -q https://github.com/TheAssassin/pyuploadtool/releases/download/continuous/pyuploadtool-x86_64.AppImage
chmod +x pyuploadtool-x86_64.AppImage
./pyuploadtool-x86_64.AppImage Gittyup/build/release/Gittyup-*.AppImage