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 noticed that a deployment failed triggered on my fork repo.
The deployment should only triggered on this repo but not on other forked repos for safety concerns.
You can have: deploy.yml modified to:
name: Deploy to GitHub Pageson:
push:
branches: [main]# Allows you to run this workflow manually from the Actions tab on GitHub.workflow_dispatch:
# Allow this job to clone the repo and create a page deploymentpermissions:
contents: readpages: writeid-token: writejobs:
build:
runs-on: ubuntu-latestenv:
CPPDOC_SITE: https://cppdoc.ccsteps:
- name: Checkout source codeuses: actions/checkout@v6
- name: Build and upload artifactsuses: withastro/action@v5deploy:
needs: buildruns-on: ubuntu-latest# disable the fork repo deployment.if: github.repository == 'cppdoc-cc/cppdoc'environment:
name: github-pagesurl: ${{ steps.deployment.outputs.page_url }}steps:
- name: Deploy to GitHub Pagesid: deploymentuses: actions/deploy-pages@v4
Activity
fix: Main page/ Comment Page and deploy.yml (#47)