add CI, rel 1.0.0

This commit is contained in:
illustris 2023-10-04 14:19:21 +05:30
parent df8526254c
commit f60fcf46da
Signed by: illustris
GPG Key ID: 56C8FC0B899FEFA3
3 changed files with 34 additions and 1 deletions

33
.github/workflows/build_and_release.yml vendored Normal file
View File

@ -0,0 +1,33 @@
name: Build and Release
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Nix
uses: cachix/install-nix-action@v14
with:
install_url: https://nixos-nix-install-tests.cachix.org/serve/i6lay7ibnxbw9sz6akk05m0d9yralys1/install
install_options: '--tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve'
extra_nix_config: |
experimental-features = nix-command flakes
- name: Build Deb package
run: nix build .#deb
- name: Upload DEB package to Release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: result/*.deb
asset_name: pvemon.deb
tag: ${{ github.ref }}
overwrite: true

View File

@ -14,7 +14,7 @@ rec {
packages.x86_64-linux = with nixpkgs.legacyPackages.x86_64-linux; rec { packages.x86_64-linux = with nixpkgs.legacyPackages.x86_64-linux; rec {
pvemon = python3Packages.buildPythonApplication { pvemon = python3Packages.buildPythonApplication {
pname = "pvemon"; pname = "pvemon";
version = "0.1.0"; version = "1.0.0";
src = ./src; src = ./src;
propagatedBuildInputs = with python3Packages; [ propagatedBuildInputs = with python3Packages; [
pexpect pexpect