添加CI/CD
Build and Publish / Run (push) Failing after 12s
Details
Build and Publish / Run (push) Failing after 12s
Details
This commit is contained in:
parent
84705ca02b
commit
b18dd70192
|
@ -0,0 +1,30 @@
|
||||||
|
name: Build and Publish
|
||||||
|
run-name: Build and Publish book (${{ gitea.actor }})
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Run:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Info
|
||||||
|
run: echo "OS=${{ runner.os }} NAME=${{ gitea.event_name }} REPO=${{ gitea.repository }} BRANCH=${{ gitea.ref }} ST=${{ job.status }} RUNID=${{ gitea.run_id }}"
|
||||||
|
- name: Prepare Source
|
||||||
|
run: |
|
||||||
|
echo "--- write source ---"
|
||||||
|
echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free">/etc/apt/sources.list
|
||||||
|
echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free">>/etc/apt/sources.list
|
||||||
|
echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free">>/etc/apt/sources.list
|
||||||
|
cat /etc/apt/sources.list
|
||||||
|
rm -rf /etc/apt/sources.list.d/*
|
||||||
|
echo "--- update source ---"
|
||||||
|
apt-get update
|
||||||
|
- name: Prepare Lftp
|
||||||
|
run: |
|
||||||
|
apt-get install lftp -y
|
||||||
|
- name: Checkout
|
||||||
|
uses: https://git.hmtsai.cn/actions/checkout@v4
|
||||||
|
- name: Upload
|
||||||
|
run: |
|
||||||
|
mv book index
|
||||||
|
lftp ${{ secrets.FTP_SITE }} -u ${{ secrets.FTP_USERNAME }},${{ secrets.FTP_PWD }} -e "mirror -R index index"
|
||||||
|
|
Loading…
Reference in New Issue