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

View File

@ -21,4 +21,4 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: | 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" name: "Build project site"
on: on:
workflow_dispatch:
push: push:
branches: branches:
- master - master
paths:
- docs/
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@ -11,16 +11,17 @@ jobs:
- uses: DeterminateSystems/magic-nix-cache-action@v2 - uses: DeterminateSystems/magic-nix-cache-action@v2
- uses: DeterminateSystems/nix-installer-action@v4 - uses: DeterminateSystems/nix-installer-action@v4
- name: Update flake inputs - 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: env:
GIT_AUTHOR_NAME: github-actions[bot] GIT_AUTHOR_NAME: github-actions[bot]
GIT_AUTHOR_EMAIL: github-actions[bot]@users.noreply.github.com GIT_AUTHOR_EMAIL: github-actions[bot]@users.noreply.github.com
GIT_COMMITTER_NAME: github-actions[bot] GIT_COMMITTER_NAME: github-actions[bot]
GIT_COMMITTER_EMAIL: github-actions[bot]@users.noreply.github.com GIT_COMMITTER_EMAIL: github-actions[bot]@users.noreply.github.com
- name: Build custom packages - name: Build custom packages
run: nix build --impure --file ./pkgs run: nix build --dry-run --impure --file ./pkgs
- name: Build NixOS configurations - 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 - name: Push changes to remote
run: | run: |
git remote remove origin git remote remove origin