English 中文(简体)
当我对我的吉安布页有另一个行动时,我是否需要部署网页。
原标题:Do I need the pages-build-deployment Github Action, when I have another action for my Github Pages?

在I ve使Github页能够:

“Settings”/

我有一件吉乌行动,在“条码”栏目上建立并部署该网页。

name: Continuous Deployment

on:
  push:
    branches:
      - master
  schedule:
    - cron:  0 0 * * * 

jobs:
  build-and-deploy:
    name: Build and deploy to Github Pages
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repo
        uses: actions/checkout@v3
      - name: Use nodejs
        uses: actions/setup-node@v3
        with:
          node-version:  16.x 
      - name: Get yarn cache directory path
        id: yarn-cache-dir-path
        run: echo "::set-output name=dir::$(yarn cache dir)"
      - name: Activate dependency cache
        uses: actions/cache@v3
        id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit !=  true `)
        with:
          path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
          key: ${{ runner.os }}-yarn-${{ hashFiles( **/yarn.lock ) }}
          restore-keys: |
            ${{ runner.os }}-yarn-
      - name: Install dependencies
        run: yarn install --frozen-lockfile
      - name: Caching Gatsby
        id: gatsby-cache-build
        uses: actions/cache@v3
        with:
          path: |
            public
            .cache
          key: ${{ runner.os }}-gatsby-build-cache-${{ github.run_id }}
          restore-keys: |
            ${{ runner.os }}-gatsby-build-cache-
      - name: Build website
        run: yarn build:with-prefix
        env:
          PATH_PREFIX:  /xyz 
          SITE_URL:  https://xyz.github.io/xyz 
          CI: true
      - name: Deploy to GitHub Pages
        uses: JamesIves/github-pages-deploy-action@v4.3.3
        with:
          branch: gh-pages
          folder: public
          clean: true

现在还有另一个“吉普行动”,似乎向“吉普行动”(使用Jakyll):

“Github

现在,我有两个问题,我可以通过搜索因特网来回答:

  1. Do I need this other action pages-build-deployment?
  2. If not, how can I disable it?
  3. If yes, for what it s needed? Am I doing the same work twice?
最佳回答

我是否需要其他行动页——部署?

This is provided by GitHub automatically.
As discussed in JamesIves/github-pages-deploy-action #1073:

我认为,对于这一行动的使用者来说,还有很大的混淆余地,因为页数的建造和部署也将逐页推移和推移页资产。

我认为,在Gite Hub宣布这些行动从长远来看打算做些什么之前,现在不可能真正说什么。

https://github. community/t/github-pages-bot-plus-to-our-repos-unannounced/218214/8“rel=” 正如该员额建议的那样,这是在推进之后迈出的必要一步,这已经发生在刚刚发现的景点之后。

So you can ignore it (and there is no obvious way to disable it).
As for doing the same work twice, the same post adds:

所发生的事情是,behind the Sites,我们使用了github-pages [bot],将这一分支缩小,并将内容部署到github-pages上,我们自动为你创造了环境。

现在,随着这一新的行动流动,这一步骤是透明的。

我们工作的最终目标是,如果你更愿意直接地向网页环境部署(不把内容投向<代码>g-pages Branch),那么你就能够在自己的工作中这样做。 这将消除在你对各页部门作出承诺时我们触发的第二次工作流程的需要。

内容:2021年12月:“

这一变化的初步好处是,你能够看到你的建筑记录和可能出现的任何错误,这些错误对页数用户来说是一个长期的问题。

然而,今后,这将使我们能够使你能够完全定制你的网页建设和部署工作流程,使用你想要的任何静态网站发电机,而不必把建筑产出推向存放处的一个特别处。

问题回答

Now you can go to your GitHub repository s setting page, and go to the "Pages". Then change the "Source" of "Build and deployment" to GitHub Actions. After that, the annoying pages-build-deployment workflow will no longer be auto-triggered.

“github





相关问题
GitHub SAML SSO ( cloud enterprise)

I wanted to integrate GitHub saml sso for the project. I have a custom IDP and from the SP initiated saml flow, like getting to the https://github.com/orgs/ORG-NAME/sso and then sso getting successful,...

How do I clone a github project to run locally?

I am trying to follow this railscast tutorial for authlogic - and it points to the source here - I have git installed - how do I replicate the source onto my localhost so that I can follow the ...

git push heroku master permission denied on VISTA

(Using Vista)I m trying to clone an app from my GitHub Repository and push it into Heroku. Okay, so I ve tried to create an SSH key so many times with this: `ssh-keygen -t rsa` It seems to go ...

SSH Public key denied on "git clone" command

I am trying to clone a git repo that I forked in my GitHub Repository.It s a rails app. I want to clone it on my local git so that I can push it onto heroku. I generated a set of rsa keys and copied ...

heroku using git branch is confusing!

Ok, so I have a big github project that i m not supposed to merge my little Stacia branch into. However, it seems like Heroku only takes pushing MASTER seriously. It looks like I pushed my branch, but ...

热门标签