Baidu submit - pzwd.net #1910
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: Baidu submit - pzwd.net | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: "30 4 * * *" | |
- cron: "30 15 * * *" | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v2.3.1 | |
with: | |
repository: PipecraftNet/baidu-submit.sh | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v2.3.1 | |
with: | |
path: log | |
- name: Baidu submit 🚀🚀🚀 | |
run: | | |
echo "SITE_URL=https://pzwd.net" > .env \ | |
&& echo "SITEMAP_URL=https://pzwd.net/sitemap.xml" >> .env \ | |
&& echo "TOKEN=${{ secrets.BAIDU_TOKEN }}" >> .env \ | |
&& mkdir -p log \ | |
&& ./baidu-submit.sh >> log/baidu-submit.log 2>&1 | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@4.1.5 | |
with: | |
branch: main # The branch the action should deploy to. | |
folder: log # The folder the action should deploy. |