-
-
Notifications
You must be signed in to change notification settings - Fork 366
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1596 from brefphp/website-v3
Website and docs v3
- Loading branch information
Showing
209 changed files
with
14,404 additions
and
6,523 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Website | ||
|
||
on: | ||
push: | ||
branches: [ 'website-v3' ] | ||
|
||
env: | ||
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | ||
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | ||
|
||
jobs: | ||
|
||
deploy: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
defaults: | ||
run: | ||
working-directory: ./website | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # fetch all history for "latest modified time" | ||
- run: npm install --global vercel@latest | ||
- run: make src/pages/docs | ||
- name: Pull Vercel Environment Information | ||
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} | ||
- name: Build | ||
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} | ||
env: | ||
# CUSTOM_GITHUB_TOKEN_READ is a manually created GitHub token with appropriate permissions: | ||
# - allowed to list contributors | ||
# - allowed to list sponsors | ||
# It wouldn't be possible to use the default GITHUB_TOKEN because it doesn't have the required permissions. | ||
GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN_READ }} | ||
- name: Deploy | ||
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.