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:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
lfs: true
|
||||
- uses: DeterminateSystems/nix-installer-action@main
|
||||
- uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
persist-credentials: 'true' # Optional; should be the default
|
||||
- name: Checkout lfs
|
||||
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`
|
||||
run: nix build .
|
||||
- uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
path: result/
|
||||
# - uses: actions/upload-pages-artifact@v3
|
||||
# with:
|
||||
# path: result/
|
||||
|
||||
deploy:
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
permissions:
|
||||
pages: write # to deploy to Pages
|
||||
id-token: write # to verify the deployment originates from an appropriate source
|
||||
steps:
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v4
|
||||
with:
|
||||
preview: true
|
||||
# deploy:
|
||||
# environment:
|
||||
# name: github-pages
|
||||
# url: ${{ steps.deployment.outputs.page_url }}
|
||||
# runs-on: ubuntu-latest
|
||||
# needs: build
|
||||
# permissions:
|
||||
# pages: write # to deploy to Pages
|
||||
# id-token: write # to verify the deployment originates from an appropriate source
|
||||
# steps:
|
||||
# - name: Deploy to GitHub Pages
|
||||
# id: deployment
|
||||
# uses: actions/deploy-pages@v4
|
||||
# with:
|
||||
# preview: true
|
||||
|
|
Loading…
Reference in a new issue