messing with env
This commit is contained in:
parent
5398a49a96
commit
ff7e3923f8
1 changed files with 5 additions and 4 deletions
|
@ -21,6 +21,8 @@ jobs:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
env:
|
env:
|
||||||
PATH: ${{ format('{0}:{1}', '/run/current-system/sw/bin', env.PATH) }}
|
PATH: ${{ format('{0}:{1}', '/run/current-system/sw/bin', env.PATH) }}
|
||||||
|
outputs:
|
||||||
|
matrix: ${{ steps.build.outputs.drvout }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: https://github.com/actions/checkout@v4
|
uses: https://github.com/actions/checkout@v4
|
||||||
|
@ -41,19 +43,18 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
DRVOUT=$(nix build ".#deploy-json.${{ matrix.system }}" --print-out-paths)
|
echo "drvout=nix build .#deploy-json.${{ matrix.system }} --print-out-paths" >> "${GITHUB_ENV}"
|
||||||
echo "::set-output name=build_output::$DRVOUT"
|
|
||||||
- name: Push cache for ${{ matrix.name }} to cachix
|
- name: Push cache for ${{ matrix.name }} to cachix
|
||||||
id: "push-to-cachix"
|
id: "push-to-cachix"
|
||||||
if: success()
|
if: success()
|
||||||
env:
|
env:
|
||||||
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
|
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
echo ${{steps.build_push.outputs.build_output}} | cachix push hsndev
|
echo ${{ env.drvout }} | cachix push hsndev
|
||||||
- name: Deploy ${{ matrix.system }} runners
|
- name: Deploy ${{ matrix.system }} runners
|
||||||
id: "deploy"
|
id: "deploy"
|
||||||
if: success()
|
if: success()
|
||||||
env:
|
env:
|
||||||
CACHIX_ACTIVATE_TOKEN: ${{ secrets.CACHIX_ACTIVATE_TOKEN }}
|
CACHIX_ACTIVATE_TOKEN: ${{ secrets.CACHIX_ACTIVATE_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
cachix deploy activate ${{ steps.build_push.outputs.build_output }}
|
cachix deploy activate ${{ env.drvout }}
|
Loading…
Reference in a new issue