更新博文:使用 Caddy 搭建 WebDAV 服务器:多平台客户端、ACL #246
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Mirror to eu.org' | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
mirror: | |
runs-on: ubuntu-latest | |
name: mirror | |
steps: | |
- name: 'Checkout' | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GH_TOKEN }} | |
- name: 'Modify' | |
run: | | |
rm .github/workflows/mirror-to-euorg.yml | |
echo "blog.lyniko.eu.org" > CNAME | |
git config user.name github-actions-sync | |
git config user.email [email protected] | |
git add . | |
git commit --amend --no-edit | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GH_TOKEN }} | |
branch: ${{ github.ref }} | |
repository: Young-Lord-Blogs/Blog-eu.org | |
force: true |