Update publish.yml #25
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: Publish package | |
on: | |
push: | |
paths: | |
- .github/workflows/publish.yml | |
env: | |
version: "0.4.3" | |
jobs: | |
build-xfce4-docklike-plugin: | |
runs-on: ubuntu-latest | |
container: | |
image: debian:sid | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install Dependencies | |
run: apt update && apt-get install wget tar build-essential dpkg binutils intltool xfce4-dev-tools xorg-dev libxfce4windowing-0-dev libglib2.0-dev libgtk-3-dev libwnck-3-dev libxfce4ui-2-dev libxfce4panel-2.0-dev -y | |
- 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/xfce4-docklike-plugin-${{ env.version }}/usr | |
make | |
make install | |
- name: Build Deb File | |
run: | | |
cd xfce4-docklike-plugin-${{ env.version }} | |
mkdir xfce4-docklike-plugin | |
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 }}/xfce4-docklike-plugin/ | |
cp -R usr xfce4-docklike-plugin | |
dpkg -b xfce4-docklike-plugin | |
- 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: | | |
xfce4-docklike-plugin-${{ env.version }}/*.deb |