fix: make the ci actually work

This commit is contained in:
Ashhhleyyy 2023-07-04 14:22:07 +01:00
parent 89752bbdc9
commit 2111bb0da4
Signed by: ash
GPG key ID: 83B789081A0878FB

View file

@ -1,15 +1,14 @@
platform: linux/arm64 platform: linux/arm64
steps: pipline:
- name: Build and deploy site build-and-deploy:
image: nixos/nix image: nixos/nix
commands: commands:
- nix --experimental-features 'nix-command flakes' build - nix --experimental-features 'nix-command flakes' build
- cd result/ && nix --experimental-features 'nix-command flakes' run nixpkgs#zip -- -r $DRONE_WORKSPACE/deploy.zip * && cd .. - cd result/ && nix --experimental-features 'nix-command flakes' run nixpkgs#zip -- -r $DRONE_WORKSPACE/deploy.zip * && cd ..
- 'nix --experimental-features "nix-command flakes" run nixpkgs#curl -- --fail --upload-file deploy.zip -H "Authorization: token $GITEA_TOKEN" https://git.ashhhleyyy.dev/api/packages/ash/generic/caaard/$DRONE_COMMIT_SHA/caaard.zip' - 'nix --experimental-features "nix-command flakes" run nixpkgs#curl -- --fail --upload-file deploy.zip -H "Authorization: token $GITEA_TOKEN" https://git.ashhhleyyy.dev/api/packages/ash/generic/caaard/$DRONE_COMMIT_SHA/caaard.zip'
environment: secrets:
GITEA_TOKEN: - GITEA_TOKEN
from_secret: GITEA_TOKEN
branches: branches:
- main - main