fixup! Update ci workflow to work with forgejo
All checks were successful
CI / build (push) Successful in 50s
All checks were successful
CI / build (push) Successful in 50s
This commit is contained in:
parent
5efb3d0a4b
commit
db981f8df1
1 changed files with 6 additions and 8 deletions
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
|
@ -13,19 +13,17 @@ concurrency:
|
|||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-22.04
|
||||
container: nixpkgs/nix-flakes:nixos-24.05
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: 'true' # Optional; should be the default
|
||||
- name: Checkout lfs
|
||||
shell: "nix shell nixpkgs#git-lfs --command {0}"
|
||||
run: |
|
||||
git clone --no-checkout https://oauth2:$GITHUB_TOKEN@git.qo.is/$GITHUB_REPOSITORY .
|
||||
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
|
||||
git lfs fetch $GITHUB_REF
|
||||
git checkout --recurse-submodules $GITHUB_REF
|
||||
- name: Run Nix Build
|
||||
uses: docker://hub.docker.com/nixpkgs/nix-flakes:nixos-24.05
|
||||
shell: "nix shell nixpkgs#git-lfs --command {0}"
|
||||
run: nix build .
|
||||
# - uses: actions/upload-pages-artifact@v3
|
||||
# with:
|
||||
|
|
Loading…
Reference in a new issue