diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index 0882c82..06fd795 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -7,24 +7,15 @@ on: jobs: build-and-deploy: - runs-on: ubuntu-latest + runs-on: nixos-host steps: - name: Checkout uses: actions/checkout@v4 - - name: Install Nix - uses: cachix/install-nix-action@v25 - with: - nix_path: nixpkgs=channel:nixos-unstable - extra_nix_config: | - experimental-features = nix-command flakes - - - name: Build with Nix + - name: Build run: | - nix-shell -p nodejs_20 git rclone --run " - npm ci - npm run build - " + npm ci + npm run build - name: Configure rclone run: | @@ -40,7 +31,5 @@ jobs: - name: Deploy to Storj run: | - nix-shell -p rclone --run " - rclone sync ./dist/ storj:${{ secrets.STORJ_BUCKET }}/ --progress - rclone sync ./public/downloads/ storj:${{ secrets.STORJ_BUCKET }}/downloads/ --progress - " + rclone sync ./dist/ storj:${{ secrets.STORJ_BUCKET }}/ --progress + rclone sync ./public/downloads/ storj:${{ secrets.STORJ_BUCKET }}/downloads/ --progress