ci: update environment and fix format errors

This commit is contained in:
Gabriel Arazas 2023-07-14 22:09:39 +08:00
parent 8d27b971fb
commit 84f51065ef
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
4 changed files with 8 additions and 8 deletions

View File

@ -4,8 +4,6 @@ on:
branches:
- master
- develop
env:
NIXPKGS_ALLOW_UNFREE: "1"
jobs:
build-custom-packages:
runs-on: ubuntu-latest
@ -21,3 +19,5 @@ jobs:
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Build custom packages
run: nix build -f ./pkgs --impure
env:
NIXPKGS_ALLOW_UNFREE: "1"

View File

@ -21,4 +21,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create "${{ github.ref }}" --generate-notes build-iso-result/iso/*.iso
gh release create latest --prerelease --generate-notes build-iso-result/iso/*.iso

View File

@ -1,10 +1,9 @@
name: "Build project site"
on:
workflow_dispatch:
push:
branches:
- master
paths:
- docs/
jobs:
build:
runs-on: ubuntu-latest

View File

@ -11,16 +11,17 @@ jobs:
- uses: DeterminateSystems/magic-nix-cache-action@v2
- uses: DeterminateSystems/nix-installer-action@v4
- name: Update flake inputs
run: nix flake update --commit-lock-file --commit-lockfile-summary "flake.lock: update inputs"
run: |
nix flake update --commit-lock-file --commit-lockfile-summary "flake.lock: update inputs"
env:
GIT_AUTHOR_NAME: github-actions[bot]
GIT_AUTHOR_EMAIL: github-actions[bot]@users.noreply.github.com
GIT_COMMITTER_NAME: github-actions[bot]
GIT_COMMITTER_EMAIL: github-actions[bot]@users.noreply.github.com
- name: Build custom packages
run: nix build --impure --file ./pkgs
run: nix build --dry-run --impure --file ./pkgs
- name: Build NixOS configurations
run: nix build --impure .#images.{ni,plover,bootstrap}
run: nix build --dry-run --impure .#images.{ni,plover,bootstrap}
- name: Push changes to remote
run: |
git remote remove origin