27 lines
697 B
YAML
27 lines
697 B
YAML
steps:
|
|
- name: build
|
|
image: nixos/nix
|
|
commands:
|
|
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
|
|
- nix build
|
|
- nix flake show
|
|
- nix flake info
|
|
when:
|
|
event: [push, pull_request]
|
|
|
|
- name: deploy
|
|
image: nixos/nix
|
|
commands:
|
|
- echo 'experimental-features = flakes nix-command' >> /etc/nix/nix.conf
|
|
- nix build
|
|
- nix profile install nixpkgs#nodePackages_latest.wrangler
|
|
- wrangler -v
|
|
- ls result
|
|
- wrangler pages deploy result --branch=$CI_COMMIT_SOURCE_BRANCH --project-name=softinio
|
|
- echo "Deploy complete"
|
|
depends_on: [build]
|
|
when:
|
|
event: push
|
|
branch: test1
|
|
|