add cachix auth config

This commit is contained in:
Johannes Kirschbauer 2022-12-03 15:34:23 +01:00 committed by GitHub
parent 6a7609c2d0
commit 8c34268b9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,16 +16,17 @@ jobs:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v18
- uses: cachix/cachix-action@v11
- run: nix build
- name: Publish to Cloudflare Pages
if: github.event_name == 'push'
uses: cloudflare/pages-action@1
with:
name: noogle
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- run: nix build
- name: Publish to Cloudflare Pages
if: github.event_name == 'push'
uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: ${{ env.cloudflare_project }}