Skip to content

build Gmerss

build Gmerss #9

Workflow file for this run

name: build Gmerss
on:
workflow_dispatch:
schedule:
- cron: "0 16 * * *"
jobs:
build:
name: Reptile
runs-on: ubuntu-20.04
permissions: write-all
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install dependencies
run: |
pip install --upgrade pip
pip install feedparser
- name: Start reptile
run: |
python Gmerss.py
- name: update html
run: |
git config --global user.email "[email protected]"
git config --global user.name "${{ github.repository_owner }}"
git add .
git commit -a -m '🎉auto update by Gmerss action' || echo "nothing to commit"
git push || echo "nothing to push"
sleep 3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: 'docs/.'
deploy:
name: Deploy to GitHub Pages
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
id: deployment
uses: actions/deploy-pages@v2