Update CONIFG.md
This commit is contained in:
parent
c26f49820e
commit
f55fed093b
53
CONIFG.md
53
CONIFG.md
@ -36,26 +36,20 @@ env:
|
|||||||
GITHUB_EMAIL: meekdai@163.com
|
GITHUB_EMAIL: meekdai@163.com
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
sync:
|
build:
|
||||||
name: Generate blog
|
name: Generate blog
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
if: github.event.repository.owner.id == github.event.sender.id
|
if: github.event.repository.owner.id == github.event.sender.id
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
pages: write
|
|
||||||
id-token: write
|
|
||||||
concurrency:
|
|
||||||
group: "pages"
|
|
||||||
cancel-in-progress: false
|
|
||||||
environment:
|
|
||||||
name: github-pages
|
|
||||||
url: ${{ steps.deployment.outputs.page_url }}
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Setup Pages
|
||||||
|
id: pages
|
||||||
|
uses: actions/configure-pages@v3
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: 3.8
|
python-version: 3.8
|
||||||
|
|
||||||
@ -76,7 +70,8 @@ jobs:
|
|||||||
cat config.json
|
cat config.json
|
||||||
echo "====== check config.josn end ======"
|
echo "====== check config.josn end ======"
|
||||||
python Gmeek.py ${{ secrets.meblog }} ${{ github.repository }} --issue_number '${{ github.event.issue.number }}'
|
python Gmeek.py ${{ secrets.meblog }} ${{ github.repository }} --issue_number '${{ github.event.issue.number }}'
|
||||||
cp -a /opt/Gmeek/docs/. ${{ github.workspace }}
|
cp -a /opt/Gmeek/docs ${{ github.workspace }}
|
||||||
|
cp -a /opt/Gmeek/backup ${{ github.workspace }}
|
||||||
cp /opt/Gmeek/blogBase.json ${{ github.workspace }}
|
cp /opt/Gmeek/blogBase.json ${{ github.workspace }}
|
||||||
|
|
||||||
- name: update html
|
- name: update html
|
||||||
@ -86,16 +81,28 @@ jobs:
|
|||||||
git add .
|
git add .
|
||||||
git commit -a -m '🎉auto update by Gmeek action' || echo "nothing to commit"
|
git commit -a -m '🎉auto update by Gmeek action' || echo "nothing to commit"
|
||||||
git push || echo "nothing to push"
|
git push || echo "nothing to push"
|
||||||
|
sleep 3
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
- name: Setup Pages
|
|
||||||
uses: actions/configure-pages@v3
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-pages-artifact@v2
|
uses: actions/upload-pages-artifact@v2
|
||||||
with:
|
with:
|
||||||
# Upload entire repository
|
path: 'docs/.'
|
||||||
path: '.'
|
|
||||||
|
deploy:
|
||||||
|
name: Deploy blog
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
needs: build
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
|
concurrency:
|
||||||
|
group: "pages"
|
||||||
|
cancel-in-progress: false
|
||||||
|
environment:
|
||||||
|
name: github-pages
|
||||||
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
|
steps:
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
id: deployment
|
id: deployment
|
||||||
uses: actions/deploy-pages@v2
|
uses: actions/deploy-pages@v2
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user