fix workflow #17
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.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 |