diff --git a/.forgejo/workflows/deploy-landing.yml b/.forgejo/workflows/deploy-landing.yml index 6c75f35..9bf0a1e 100644 --- a/.forgejo/workflows/deploy-landing.yml +++ b/.forgejo/workflows/deploy-landing.yml @@ -9,17 +9,8 @@ jobs: deploy: runs-on: nixos steps: - - name: Create working directory - run: | - rm -rf /tmp/speckl-deploy-${{ github.run_id }} - mkdir -p /tmp/speckl-deploy-${{ github.run_id }} - echo "WORKDIR=/tmp/speckl-deploy-${{ github.run_id }}" >> $GITHUB_ENV - - - name: Clone repo - run: | - git clone http://localhost:3000/sscoble/speckl.git "${{ env.WORKDIR }}" - cd "${{ env.WORKDIR }}" - git checkout ${{ github.sha }} + - name: Checkout + uses: actions/checkout@v4 - name: Configure rclone run: | @@ -35,4 +26,4 @@ jobs: - name: Deploy to Storj run: | - rclone sync "${{ env.WORKDIR }}/landing/" storj:speckl/ --progress + nix run nixpkgs#rclone -- sync landing/ storj:speckl/ --progress \ No newline at end of file