gitea-action-test/.github/workflows/发布wordpress文章.yml
LIRUI a90e0b0508
All checks were successful
发布wordpress文章 / generate_changelog (push) Successful in 6s
1028.yml
2024-10-29 00:42:05 +08:00

31 lines
861 B
YAML

name: 发布wordpress文章
on:
push:
branches:
- main
jobs:
generate_changelog:
runs-on: ubuntu-latest
steps:
- name: 🛒 检出代码
uses: https://git.aoun.ltd/actions/checkout@v4
- name: 设置时区
env:
TZ: Asia/Shanghai
run: date
#- name: 配置 apt 源为清华源并安装依赖
# run: |
# sudo sed -i 's@http://.*.ubuntu.com@https://mirrors.tuna.tsinghua.edu.cn@' /etc/apt/sources.list
# sudo apt-get update -y
# sudo apt-get install -y python3 python3-pip
- name: 📦 更新文章内容到wordpress
env:
WORDPRESS_URL: ${{ secrets.WORDPRESS_URL }}
WORDPRESS_USERNAME: ${{ secrets.WORDPRESS_USERNAME }}
WORDPRESS_PASSWORD: ${{ secrets.WORDPRESS_PASSWORD }}
run: python 发布文章.py