refactor: 为旧博文使用 slug 缩短网址 #125
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@v3 | |
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 |