This commit is contained in:
parent
245fae8183
commit
aee87cd628
1 changed files with 29 additions and 22 deletions
51
.github/workflows/ci.yml
vendored
51
.github/workflows/ci.yml
vendored
|
@ -14,29 +14,36 @@ jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
lfs: true
|
persist-credentials: 'true' # Optional; should be the default
|
||||||
- uses: DeterminateSystems/nix-installer-action@main
|
- name: Checkout lfs
|
||||||
- uses: DeterminateSystems/magic-nix-cache-action@main
|
run: |
|
||||||
|
git lfs install --local
|
||||||
|
AUTH=$(git config --local http.${{ github.server_url }}/.extraheader)
|
||||||
|
git config --local --unset http.${{ github.server_url }}/.extraheader
|
||||||
|
git config --local http.${{ github.server_url }}/${{ github.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH"
|
||||||
|
git lfs pull
|
||||||
|
- uses: "https://github.com/DeterminateSystems/nix-installer-action@main"
|
||||||
|
- uses: "https://github.com/DeterminateSystems/magic-nix-cache-action@main"
|
||||||
- name: Run `nix build`
|
- name: Run `nix build`
|
||||||
run: nix build .
|
run: nix build .
|
||||||
- uses: actions/upload-pages-artifact@v3
|
# - uses: actions/upload-pages-artifact@v3
|
||||||
with:
|
# with:
|
||||||
path: result/
|
# path: result/
|
||||||
|
|
||||||
deploy:
|
# deploy:
|
||||||
environment:
|
# environment:
|
||||||
name: github-pages
|
# name: github-pages
|
||||||
url: ${{ steps.deployment.outputs.page_url }}
|
# url: ${{ steps.deployment.outputs.page_url }}
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
needs: build
|
# needs: build
|
||||||
permissions:
|
# permissions:
|
||||||
pages: write # to deploy to Pages
|
# pages: write # to deploy to Pages
|
||||||
id-token: write # to verify the deployment originates from an appropriate source
|
# id-token: write # to verify the deployment originates from an appropriate source
|
||||||
steps:
|
# steps:
|
||||||
- name: Deploy to GitHub Pages
|
# - name: Deploy to GitHub Pages
|
||||||
id: deployment
|
# id: deployment
|
||||||
uses: actions/deploy-pages@v4
|
# uses: actions/deploy-pages@v4
|
||||||
with:
|
# with:
|
||||||
preview: true
|
# preview: true
|
||||||
|
|
Loading…
Reference in a new issue