You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a public repo: https://github.com/kanglcn/insar101 to write and host a website with the quarto tool. The main branch is the source code, and the gh-pages is the generated website content.
I have two workflow files. The deploy.yml is used to render the content and update the gh-pages:
on:
workflow_dispatch:
push:
branches: main
name: Quarto Publish
jobs:
build-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
- name: Install Python and Dependencies
uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip'
- run: pip install -r requirements.txt
- name: Render and Publish
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
The sftp.yml is used to copy the gh-pages branch to another server via SFTP:
I found the first workflow can be corrected triggered by push, then the github pages was built successfully. However, the second workflow was not triggered. The interesting thing is, if I change the repo from public to private, the second workflow will be triggered.
I have asked a question at https://github.com/orgs/community/discussions/40392#discussioncomment-4283136 and people there suspect this is because workflow using GITHUB_TOKEN will not trigger new workflow anymore. I have tried to replace GITHUB_TOKEN to a personal access token but the SFTP workflow was still not triggered.
Does anybody know the solution?
Thanks!
The text was updated successfully, but these errors were encountered:
Hi,
I have a public repo: https://github.com/kanglcn/insar101 to write and host a website with the quarto tool. The
main
branch is the source code, and thegh-pages
is the generated website content.I have two workflow files. The deploy.yml is used to render the content and update the
gh-pages
:The sftp.yml is used to copy the
gh-pages
branch to another server via SFTP:I found the first workflow can be corrected triggered by push, then the github pages was built successfully. However, the second workflow was not triggered. The interesting thing is, if I change the repo from public to private, the second workflow will be triggered.
I have asked a question at https://github.com/orgs/community/discussions/40392#discussioncomment-4283136 and people there suspect this is because workflow using
GITHUB_TOKEN
will not trigger new workflow anymore. I have tried to replaceGITHUB_TOKEN
to a personal access token but the SFTP workflow was still not triggered.Does anybody know the solution?
Thanks!
The text was updated successfully, but these errors were encountered: