mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
prepare for releases
This commit is contained in:
+1
-2
@@ -1,2 +1 @@
|
||||
custom:
|
||||
- paypal.me/linusdierheimer
|
||||
custom: paypal.me/linusdierheimer
|
||||
|
||||
@@ -1,50 +0,0 @@
|
||||
name: CMake
|
||||
|
||||
env:
|
||||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
|
||||
BUILD_TYPE: Release
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
|
||||
# You can convert this to a matrix build if you need cross-platform coverage.
|
||||
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
# Install dependencies, so that CMake enables all modules
|
||||
- name: install packages
|
||||
run: sudo apt-get update && sudo apt-get install -y libpci-dev libvulkan-dev libwayland-dev libxrandr-dev libxcb-randr0-dev libdconf-dev libxfconf-0-dev librpm-dev libzstd-dev
|
||||
|
||||
# Kick off the debian packaging
|
||||
- name: Create deb package
|
||||
working-directory: ${{github.workspace}}/packaging/deb
|
||||
run: sh ./create-deb-pkg.sh
|
||||
|
||||
|
||||
# Create a release draft with the fastfetch.deb file
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ github.ref }}
|
||||
release_name: Debian package for ${{ github.sha }}
|
||||
draft: true
|
||||
prerelease: false
|
||||
|
||||
- name: Upload Release Asset
|
||||
id: upload-release-asset
|
||||
uses: actions/upload-release-asset@v1
|
||||
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: ${{github.workspace}}/packaging/deb/fastfetch.deb
|
||||
asset_name: fastfetch.deb
|
||||
asset_content_type: application/vnd.debian.binary-package
|
||||
@@ -10,7 +10,7 @@ env:
|
||||
BUILD_TYPE: Release
|
||||
|
||||
jobs:
|
||||
default:
|
||||
check:
|
||||
name: Build, Run and Analyze fastfetch
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
@@ -50,3 +50,18 @@ jobs:
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v1
|
||||
|
||||
- name: Build deb package
|
||||
run: sh packaging/deb/create.sh .
|
||||
|
||||
- name: Upload binary
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: fastfetch
|
||||
path: ./fastfetch
|
||||
|
||||
- name: Upload deb package
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: fastfetch.deb
|
||||
path: ./packaging/deb/fastfetch.deb
|
||||
Reference in New Issue
Block a user