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
39
.github/workflows/pages-deploy.yml
vendored
39
.github/workflows/pages-deploy.yml
vendored
|
@ -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
|
||||||
|
@ -64,6 +64,16 @@ jobs:
|
||||||
- name: Push to "website" branch
|
- name: Push to "website" branch
|
||||||
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
|
||||||
|
!
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -92,29 +102,4 @@ jobs:
|
||||||
# - name: Upload site artifact
|
# - name: Upload site artifact
|
||||||
# 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
|
|
||||||
!
|
|
Loading…
Reference in a new issue