gitea-action-test/.github/workflows/发布wordpress文章.yml
2024-11-15 23:49:44 +08:00

29 lines
719 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: 安装 Python 依赖
run: |
pip install markdown -i https://pypi.tuna.tsinghua.edu.cn/simple
- name: 📦 更新文章内容到wordpress
env:
WORDPRESS_URL: ${{ secrets.WORDPRESS_URL }}
WORDPRESS_USERNAME: ${{ secrets.WORDPRESS_USERNAME }}
WORDPRESS_PASSWORD: ${{ secrets.WORDPRESS_PASSWORD }}
run: python 发布文章.py