34 lines
897 B
YAML
34 lines
897 B
YAML
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
|