Simplify deploy workflow: use actions/checkout, nix run rclone
Some checks failed
Deploy Landing Page to Storj / deploy (push) Failing after 6s
Some checks failed
Deploy Landing Page to Storj / deploy (push) Failing after 6s
This commit is contained in:
parent
db8726d442
commit
33ad2a35dd
1 changed files with 3 additions and 12 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue