Loading... ### 导入库 因为会涉及到的cloudflare api 将保存在secrets中,故开私人仓库降低风险。 ![your repositories](https://180811.xyz/usr/uploads/2021/08/1828705591.png) ![image.png](https://180811.xyz/usr/uploads/2021/08/2677506277.png) ![9.png](https://180811.xyz/usr/uploads/2021/08/2175158530.png) ![10.png](https://180811.xyz/usr/uploads/2021/08/1811956581.png) 黏贴 https://github.com/pureink/inkrss ![13.png](https://180811.xyz/usr/uploads/2021/08/2055401695.png) ![26.png](https://180811.xyz/usr/uploads/2021/08/3660066470.png) ![27.png](https://180811.xyz/usr/uploads/2021/08/753905531.png) ### 新建workflow ![28.png](https://180811.xyz/usr/uploads/2021/08/1393410360.png) ![29.png](https://180811.xyz/usr/uploads/2021/08/1581454310.png) ![30.png](https://180811.xyz/usr/uploads/2021/08/1442091461.png) 黏贴下面的内容 ```yml name: Deploy on: push: branches: jobs: deploy: runs-on: ubuntu-latest name: Deploy to Cloudflare Workers steps: - uses: actions/checkout@master - name: Publish uses: cloudflare/wrangler-action@1.3.0 with: apiToken: ${{ secrets.CF_API_TOKEN }} wranglerVersion: '1.13.0' ``` ![52.png](https://180811.xyz/usr/uploads/2021/08/2321769039.png) ![53.png](https://180811.xyz/usr/uploads/2021/08/3652218506.png) ![661.png](https://180811.xyz/usr/uploads/2021/08/1976762494.png) ![662.png](https://180811.xyz/usr/uploads/2021/08/182570566.png)![663.png](https://180811.xyz/usr/uploads/2021/08/3946392958.png) ![663.png](https://180811.xyz/usr/uploads/2021/08/3855332736.png) 黏贴下面的(注意修改自己的仓库 ```yml name: fetch origin on: push: branches: - main schedule: - cron: 0 */24 * * * # 每隔12小时 jobs: update_external_airflow_fork: runs-on: ubuntu-latest steps: - uses: TobKed/github-forks-sync-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }} # 令牌 upstream_repository: pureink/inkrss # 上游仓库 target_repository: gchengyu/inkrss_new # 你要推送的仓库 upstream_branch: main # 默认是拉取上游仓库的 master 分支 target_branch: origin # 默认推送到你的仓库 master 分支 force: false # 是否强制推送 tags: true # 确定是否使用 - tags ``` ![1.png](https://180811.xyz/usr/uploads/2021/08/1076654327.png) ![2.png](https://180811.xyz/usr/uploads/2021/08/3564608049.png) ### 获取CF_API_TOKEN并填入secrets ![image.png](https://180811.xyz/usr/uploads/2021/08/558632319.png) ![59.png](https://180811.xyz/usr/uploads/2021/08/3735139736.png) ![image.png](https://180811.xyz/usr/uploads/2021/08/2376968965.png) ![image.png](https://180811.xyz/usr/uploads/2021/08/3828294744.png) ![image.png](https://180811.xyz/usr/uploads/2021/08/359796923.png) ![image.png](https://180811.xyz/usr/uploads/2021/08/4293742261.png) ![image.png](https://180811.xyz/usr/uploads/2021/08/988911020.png)![67.png](https://180811.xyz/usr/uploads/2021/08/2166496744.png) ![71.png](https://180811.xyz/usr/uploads/2021/08/2532121672.png) ![image.png](https://180811.xyz/usr/uploads/2021/08/331356673.png) ![73.png](https://180811.xyz/usr/uploads/2021/08/2856108311.png) ![74.png](https://180811.xyz/usr/uploads/2021/08/4080807859.png) ![80.png](https://180811.xyz/usr/uploads/2021/08/1361301729.png) ![81.png](https://180811.xyz/usr/uploads/2021/08/850155205.png) ![image.png](https://180811.xyz/usr/uploads/2021/08/1287173322.png) ![89.png](https://180811.xyz/usr/uploads/2021/08/2316076210.png) ![90.png](https://180811.xyz/usr/uploads/2021/08/2005406542.png) Name`CF_API_TOKEN` Value就是刚刚复制的令牌 ![image.png](https://180811.xyz/usr/uploads/2021/08/3726312466.png) ### 获取KV的id并保存备用 ![image.png](https://180811.xyz/usr/uploads/2021/08/1564384762.png) ![image.png](https://180811.xyz/usr/uploads/2021/08/1300312574.png) ![image.png](https://180811.xyz/usr/uploads/2021/08/1810515636.png) ![image.png](https://180811.xyz/usr/uploads/2021/08/1232552386.png) ![image.png](https://180811.xyz/usr/uploads/2021/08/3568877473.png) ### 获取账户id并保存备用 ![image.png](https://180811.xyz/usr/uploads/2021/08/3458182428.png) ![image.png](https://180811.xyz/usr/uploads/2021/08/948373197.png) ## 然后回去填wrangler.toml ![349.png](https://180811.xyz/usr/uploads/2021/08/741488212.png) ![image.png](https://180811.xyz/usr/uploads/2021/08/365934120.png) 下面的内容黏贴进去填好 ```yml name = "inkrss" type = "webpack" account_id = "" #上面获得的账户id workers_dev = true route = "" zone_id = "" webpack_config = "webpack.config.js" target_type = "webpack" kv_namespaces = [ { binding = "KV" , id = ""} #id是上面获得的KV的id ] [triggers] crons = ["*/1 * * * *"] [site] bucket = "./public" entry-point = "./" ``` 保存即可,会自动部署的。 ### 然后后面的配置请参考 https://blog.imzjw.cn/posts/inkrss/ 中 通知方式 及之后的内容 最后修改:2022 年 01 月 19 日 11 : 18 PM © 允许规范转载 赞赏 打赏,please! 赞赏作者 支付宝微信
2 条评论
请问完成后前端网址怎么查看?或者还要继续wrangler publish?
抱歉打扰,仔细研究后解决问题,十分感谢!