Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: trigger the new website build #4839

Merged
merged 2 commits into from
Jun 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 4 additions & 5 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- main
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I bit late, but we should also allow branches 1.x, 2.x and 3.x to trigger rebuild.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should work because we run this work flow when a new release is pushed and the older versions will create it

paths:
- 'docs/**'
- '**.md'
release:
types:
- released
Expand All @@ -19,8 +20,6 @@ jobs:
steps:
- name: Build website
run: |
curl -X POST \
-H 'Content-Type: application/json' \
-H 'Circle-Token: ${{ secrets.circleci_token }}' \
-d '{"branch":"master"}' \
"https://circleci.com/api/v2/project/gh/fastify/website/pipeline"
gh workflow run ci-cd.yml -R fastify/website
env:
GH_TOKEN: ${{ secrets.GHA_WEBSITE_FINE_TOKEN }}