2021-03-01 18:03:35 +00:00
name : Build AppImage
2021-03-02 13:20:57 +00:00
on :
push :
branches :
- main
tags :
- v*
2021-03-01 18:03:35 +00:00
jobs :
build :
2022-09-10 17:09:46 +00:00
runs-on : ubuntu-22.04
2021-03-01 18:03:35 +00:00
steps :
2021-04-18 15:46:00 +00:00
- run : sudo apt-get -qq update
2021-03-01 18:03:35 +00:00
- name : Install dependencies
run : |
sudo apt-get install -yqq --no-install-recommends \
audacious-dev \
cmake \
docbook2x \
gawk \
lcov \
libaudclient-dev \
libcairo2-dev \
libcurl4-gnutls-dev \
libglib2.0-dev \
libical-dev \
libimlib2-dev \
libircclient-dev \
2021-03-02 18:27:59 +00:00
libiw-dev \
2021-03-01 18:03:35 +00:00
liblua5.3-dev \
libmicrohttpd-dev \
libmysqlclient-dev \
libpulse-dev \
librsvg2-dev \
libsystemd-dev \
libx11-dev \
libxdamage-dev \
libxext-dev \
libxft-dev \
libxinerama-dev \
libxml2-dev \
libxmmsclient-dev \
libxnvctrl-dev \
ncurses-dev
- name : Checkout
uses : actions/checkout@v2
- name : Import GPG Deploy Key
run : |
echo "${{ secrets.GPG_DEPLOY_KEY }}" > appimage/secret.gpg
gpg --import appimage/secret.gpg
- name : Build AppImage
run : ./appimage/build.sh
- name : Archive AppImage
uses : actions/upload-artifact@v2
with :
name : conky-appimage
path : conky*.AppImage
2021-03-02 13:20:57 +00:00
- name : Get Name of Artifact
run : |
ARTIFACT_PATHNAME=$(ls conky*.AppImage | head -n 1)
ARTIFACT_NAME=$(basename $ARTIFACT_PATHNAME)
2021-03-02 13:30:03 +00:00
echo "ARTIFACT_PATHNAME=${ARTIFACT_PATHNAME}" >> $GITHUB_ENV
echo "ARTIFACT_NAME=${ARTIFACT_NAME}" >> $GITHUB_ENV
2021-03-02 13:35:14 +00:00
- name : Print Name of Artifact
run : |
echo ARTIFACT_PATHNAME=${{ env.ARTIFACT_PATHNAME }}
echo ARTIFACT_NAME=${{ env.ARTIFACT_NAME }}
2021-03-02 15:41:45 +00:00
- name : Create Conky Release
2021-03-02 13:20:57 +00:00
id : create_release
uses : actions/create-release@v1
if : startsWith(github.ref, 'refs/tags/v')
env :
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
with :
tag_name : ${{ github.ref }}
2021-03-02 15:41:45 +00:00
release_name : Conky ${{ github.ref }}
2021-03-02 13:20:57 +00:00
draft : false
prerelease : false
2021-03-02 15:41:45 +00:00
- name : Upload Conky Release Asset
2021-03-02 13:20:57 +00:00
id : upload-release-asset
uses : actions/upload-release-asset@v1
if : startsWith(github.ref, 'refs/tags/v')
env :
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
with :
upload_url : ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path : ${{ env.ARTIFACT_PATHNAME }}
asset_name : ${{ env.ARTIFACT_NAME }}
2021-03-02 15:37:52 +00:00
asset_content_type : application/x-executable