Skip to content

Commit 7084bf7

Browse files
committed
feat: link to official website portal and add site dispatch workflow
1 parent ce5ce34 commit 7084bf7

3 files changed

Lines changed: 31 additions & 2 deletions

File tree

.github/workflows/notify-site.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Dispatch Website Build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- main
8+
tags:
9+
- "v*"
10+
11+
jobs:
12+
dispatch:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Trigger Website Workflow
16+
uses: peter-evans/repository-dispatch@v3
17+
if: env.SYNC_TOKEN != ''
18+
with:
19+
token: ${{ secrets.WEBSITE_SYNC_TOKEN }}
20+
repository: flypythoncom/flypython.com
21+
event-type: python-repo-updated
22+
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'
23+
env:
24+
SYNC_TOKEN: ${{ secrets.WEBSITE_SYNC_TOKEN }}

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
[![GitHub stars](https://img.shields.io/github/stars/flypythoncom/python?style=flat-square&label=stars)](https://github.com/flypythoncom/python/stargazers)
44
[![Validate](https://github.com/flypythoncom/python/actions/workflows/validate.yml/badge.svg)](https://github.com/flypythoncom/python/actions/workflows/validate.yml)
5+
[![Website](https://img.shields.io/badge/Website-flypython.com-blue?style=flat-square)](https://flypython.com)
56

6-
[English](README.md) · [中文](README_cn.md)
7+
[English](README.md) · [中文](README_cn.md) · [🌐 Online Portal](https://flypython.com)
78

89
FlyPython is a practical, bilingual repository for writing good Python and
910
turning it into products people can rely on. It combines AI-coding methods,

README_cn.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# FlyPython:用 Python 和 AI Coding 做出好产品
22

3-
[English](README.md) · [中文](README_cn.md)
3+
[![GitHub stars](https://img.shields.io/github/stars/flypythoncom/python?style=flat-square&label=stars)](https://github.com/flypythoncom/python/stargazers)
4+
[![Validate](https://github.com/flypythoncom/python/actions/workflows/validate.yml/badge.svg)](https://github.com/flypythoncom/python/actions/workflows/validate.yml)
5+
[![Website](https://img.shields.io/badge/Website-flypython.com-blue?style=flat-square)](https://flypython.com)
6+
7+
[English](README.md) · [中文](README_cn.md) · [🌐 官方在线门户](https://flypython.com)
48

59
FlyPython 是一个面向实践的双语仓库,帮助你写好 Python,并把代码变成用户可以依赖的
610
产品。这里同时提供 AI Coding 方法、任务 Playbook、可运行示例、复用模板,以及 API、

0 commit comments

Comments
 (0)