Update .github/workflows/pages-deploy.yml
Some checks failed
Build and Deploy Test Version - next.asandikci.com / build_deploy (push) Has been cancelled

This commit is contained in:
Aliberk Sandıkçı 2024-11-13 22:10:36 +03:00
parent 7b5e366190
commit c3fe15207b

View file

@ -20,7 +20,7 @@ concurrency:
cancel-in-progress: true cancel-in-progress: true
jobs: jobs:
build: build_deploy:
runs-on: docker runs-on: docker
container: container:
image: bitnami/minideb:bookworm-arm64 image: bitnami/minideb:bookworm-arm64
@ -65,6 +65,16 @@ jobs:
run: | run: |
echo "do not ready yet" echo "do not ready yet"
- name: Checkout & Deploy
run: |
git clone https://git.asandikci.com/asandikci.com/web
cd web
git checkout website
sshpass -f ~/.passwd sftp -oBatchMode=no -o StrictHostKeyChecking=accept-new -b - ${{ secrets.SFTP_USERNAME }}@${{ vars.SFTP_HOST }} << !
put -r . www/
bye
!
@ -93,28 +103,3 @@ jobs:
# uses: actions/upload-pages-artifact@v3 # uses: actions/upload-pages-artifact@v3
# with: # with:
# path: "_site${{ steps.pages.outputs.base_path }}" # path: "_site${{ steps.pages.outputs.base_path }}"
deploy:
runs-on: docker
needs: build
container:
image: bitnami/minideb:bookworm-arm64
steps:
- name: Setup System Resources & Settings
run: |
apt-get update -y
apt-get upgrade -y
apt-get install git sshpass
# no need to these after using own docker image! (see asandikci/DockerTests)
- name: Checkout & Deploy
run: |
git clone https://git.asandikci.com/asandikci.com/web
cd web
git checkout website
echo '${{ secrets.SFTP_PASSWORD }}' > ~/.passwd
chmod 0400 ~/.passwd
sshpass -f ~/.passwd sftp -oBatchMode=no -o StrictHostKeyChecking=accept-new -b - ${{ secrets.SFTP_USERNAME }}@${{ vars.SFTP_HOST }} << !
put -r . www/
bye
!