Skip to content

Commit

Permalink
Merge branch 'main' of github.com:ouyen/qndxx-beijing into main
Browse files Browse the repository at this point in the history
  • Loading branch information
ouyen committed Oct 11, 2022
2 parents 3e972ab + 802360c commit 8129764
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
20 changes: 19 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ on:
workflow_dispatch:

jobs:
build:
# build:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -47,9 +51,23 @@ jobs:
source: html/index.md
output: html/index.html

- name: CNAME
run: |
echo 'qndxx.tk' > ./html/CNAME
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./html
# - name: Setup Pages
# uses: actions/configure-pages@v2
# - name: Upload artifact
# uses: actions/upload-pages-artifact@v1
# with:
# # Upload entire repository
# path: './html'
# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v1

9 changes: 7 additions & 2 deletions Course.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ def download_img(self):
return False

def write_html(self):
text = f'''
text = f'''<meta name="referrer" content="no-referrer">
# 以下已失效
# 青年大学习(北京)
## 使用方法
Expand All @@ -74,6 +75,10 @@ def write_html(self):
## 风险自负!!!
## star me:
https://github.com/ouyen/qndxx-beijing/
'''
with open('html/index.md', 'w', encoding='utf-8') as f:
f.write(text)
Expand Down

0 comments on commit 8129764

Please sign in to comment.