2023-07-04 13:18:40 +00:00
|
|
|
platform: linux/arm64
|
2022-12-20 14:13:19 +00:00
|
|
|
|
|
|
|
steps:
|
2022-12-20 17:39:25 +00:00
|
|
|
- name: Build and deploy site
|
2022-12-20 14:13:19 +00:00
|
|
|
image: nixos/nix
|
|
|
|
commands:
|
|
|
|
- nix --experimental-features 'nix-command flakes' build
|
2022-12-20 18:03:47 +00:00
|
|
|
- cd result/ && nix --experimental-features 'nix-command flakes' run nixpkgs#zip -- -r $DRONE_WORKSPACE/deploy.zip * && cd ..
|
2022-12-20 17:39:25 +00:00
|
|
|
- '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'
|
2022-12-20 14:13:19 +00:00
|
|
|
environment:
|
|
|
|
GITEA_TOKEN:
|
|
|
|
from_secret: GITEA_TOKEN
|
|
|
|
|
2023-07-04 13:18:40 +00:00
|
|
|
branches:
|
|
|
|
- main
|