我正在尝试在 GitHub 上构建一个 Action,以始终保持我应用程序的网络版本最新。但是,它没有更新。
对于第一次部署,我遵循了expo deploy to GitHub Pages 文档。然后,我构建了以下工作流程:
name: Web
on:
push:
branches:
- main
workflow_dispatch:
jobs:
web:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: ⚙️ Set up repository
uses: actions/checkout@v2
- name: ❇️ Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 16.x
- name: 🔷 Set up Expo
uses: expo/expo-github-action@v7
with:
expo-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: 📦 Install dependencies
run: yarn install
- name: ⤴️ Export the app
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
yarn deploy -- -u "github-actions-bot <[email protected]>"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 🚀 Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./
但是,当操作运行时,它没有更新网站。我决定改回分支部署,但现在我的网站崩溃了。
有人做过吗?我在互联网上找不到任何参考资料浏览。