Skip to content

Commit

Permalink
build: organize action
Browse files Browse the repository at this point in the history
  • Loading branch information
icecreammatt committed Jan 7, 2024
1 parent 424ac5c commit 1affd71
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/nix-github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,24 @@ on:
pull_request:
push:
branches:
- master
- main

jobs:
nix-matrix:
nix-setup:
runs-on: ubuntu-latest
# outputs:
# matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v24
- id: set-matrix
name: Generate Nix Matrix
run: |
set -Eeu
nix-setup:
runs-on: ubuntu-latest
steps:
needs: nix-matrix
steps:
- id: build
name: nix build
run: nix build
Expand All @@ -34,12 +37,6 @@ jobs:
- run: git config --global user.name "Matt Carrier"
- run: git commit -m "update build"
- run: git push -f origin gh-pages
# - run: nix-shell -p ghp-import
# - run: ghp-import --message "Automatic update from https://github.com/icecreammatt/wiki.net" ./result/www
# - run: git push --force origin gh-pages:gh-pages

# matrix="$(nix eval --json '.#')"
# echo "matrix=$matrix" >> "$GITHUB_OUTPUT"

# nix-build:
# needs: nix-matrix
Expand Down

0 comments on commit 1affd71

Please sign in to comment.