Update .github/workflows/pages-deploy.yml
Some checks failed
Build and Deploy Test Version - next.asandikci.com / build_deploy (push) Has been cancelled
Some checks failed
Build and Deploy Test Version - next.asandikci.com / build_deploy (push) Has been cancelled
This commit is contained in:
parent
7b5e366190
commit
c3fe15207b
1 changed files with 12 additions and 27 deletions
37
.github/workflows/pages-deploy.yml
vendored
37
.github/workflows/pages-deploy.yml
vendored
|
@ -20,7 +20,7 @@ concurrency:
|
|||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
build_deploy:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: bitnami/minideb:bookworm-arm64
|
||||
|
@ -65,6 +65,16 @@ jobs:
|
|||
run: |
|
||||
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
|
||||
# with:
|
||||
# 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
|
||||
!
|
Loading…
Reference in a new issue