From 2111bb0da4044ee180bcf236b92a3a0f986ddedf Mon Sep 17 00:00:00 2001 From: Ashhhleyyy Date: Tue, 4 Jul 2023 14:22:07 +0100 Subject: [PATCH] fix: make the ci actually work --- .woodpecker.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 33c93dd..3d33baa 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,15 +1,14 @@ platform: linux/arm64 -steps: -- name: Build and deploy site - image: nixos/nix - commands: - - nix --experimental-features 'nix-command flakes' build - - 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' - environment: - GITEA_TOKEN: - from_secret: GITEA_TOKEN +pipline: + build-and-deploy: + image: nixos/nix + commands: + - nix --experimental-features 'nix-command flakes' build + - 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' + secrets: + - GITEA_TOKEN branches: - main \ No newline at end of file