plz work
This commit is contained in:
parent
528a3a1c79
commit
8ab3746af0
35
.gitea/workflows/action.yml
Normal file
35
.gitea/workflows/action.yml
Normal file
@ -0,0 +1,35 @@
|
||||
name: pipeline
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy-job:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: init env
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y ftp hugo git
|
||||
|
||||
- name: init git
|
||||
run: |
|
||||
git clone https://git.fzorb.xyz/bokku/website
|
||||
cd website
|
||||
git submodule foreach --recursive git reset --hard
|
||||
git submodule init
|
||||
git submodule update --recursive
|
||||
|
||||
- name: init ftp and delete old files
|
||||
run: |
|
||||
lftp -u "main","${{ secrets.FTP_PASS }}" -e "rm -rf /www; bye" -p 2021 ftp://107.189.28.28
|
||||
|
||||
- name: upload new files via ftp
|
||||
run: |
|
||||
lftp -u "main","${{ secrets.FTP_PASS }}" -e "mirror -R website/public /www; bye" -p 2021 ftp://107.189.28.28
|
||||
|
||||
- name: fix perms via ftp
|
||||
run: |
|
||||
lftp -u "main","${{ secrets.FTP_PASS }}" -e "chmod -R 755 /www; bye" -p 2021 ftp://107.189.28.28
|
Loading…
Reference in New Issue
Block a user