-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (41 loc) · 1.53 KB
/
publish.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
42
43
44
45
46
47
48
name: Publish package
on:
push:
paths:
- .github/workflows/publish.yml
env:
version: "0.4.2"
jobs:
build-xfce4-docklike-plugin:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Dependencies
run: sudo apt update && sudo apt-get install wget tar build-essential dpkg binutils intltool xfce4-dev-tools xorg-dev libglib2.0-dev libgtk-3-dev libwnck-3-dev libxfce4ui-2-dev libxfce4panel-2.0-dev
- name: Build
run: |
wget https://archive.xfce.org/src/panel-plugins/xfce4-docklike-plugin/0.4/xfce4-docklike-plugin-${{ env.version }}.tar.bz2
tar -xvf xfce4-docklike-plugin-${{ env.version }}.tar.bz2
cd xfce4-docklike-plugin-${{ env.version }}
mkdir usr
./configure --prefix=/home/runner/work/xfce4-docklike-plugin/xfce4-docklike-plugin-${{ env.version }}/usr
make
make install
ls
pwd
- name: Build Deb File
run: |
ls
pwd
cp -R /home/runner/work/xfce4-docklike-plugin/xfce4-docklike-plugin/DEBIAN /home/runner/work/xfce4-docklike-plugin/xfce4-docklike-plugin/xfce4-docklike-plugin-${{ env.version }}
dpkg -b xfce4-docklike-plugin-${{ env.version }}
- name: Automatic Release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: ${{ env.version }}
prerelease: false
title: "Latest Build ${{ env.version }}"
files: |
*.deb