跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[问与答] 请教 Github Pages 部署的一个问题

发表于

周末搞了一下 yihong 大佬的running_page,里面有用到Github Pages能力。

一共有两个 workflow 任务:

run_data_sync  用于抓取运动数据
gh-pages  部署 Github Pages 页面

gh-pages.yml 完整配置

      - name: Build
        run: PATH_PREFIX=/${{ github.event.repository.name }} pnpm build

      - name: Upload artifact
        uses: actions/upload-pages-artifact@v3
        with:
          # Upload dist repository
          path: './dist'
      - name: Deploy to GitHub Pages
        id: deployment
        uses: actions/deploy-pages@v4

这里最后构建后,通过actions/deploy-pages部署到Github Pages页面。

按我的理解,这里应该会把构建后的文件推送到仓库的gh-pages分支下,但是我实际运行看了,并没有生成gh-pages分支,但是Github Pages确实是可以访问的。

我 Fork 后的仓库: https://github.com/Liudon/workouts_page/

部署后的Github Pageshttps://workout.liudon.com

求各位大佬解惑

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.