-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'neoforged:main' into patch-2
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: 'Build Pull Request' | ||
run-name: Build and upload preview for PR ${{ github.event.pull_request.number }} | ||
|
||
on: | ||
pull_request: | ||
types: [synchronize, opened] | ||
|
||
jobs: | ||
build: | ||
name: Build and upload site | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: npm | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
- name: Build website | ||
run: npm run build | ||
- uses: matyrobbrt/cloudflare-pr-previews/upload@v1 | ||
name: Upload website | ||
with: | ||
build-dir: ./build/ |
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,24 @@ | ||
name: 'Pull Request Previews' | ||
run-name: Upload previews from workflow run ${{ github.event.workflow_run.id }} | ||
on: | ||
workflow_run: | ||
workflows: [Build Pull Request] | ||
types: | ||
- completed | ||
|
||
concurrency: | ||
group: preview-pr | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
preview: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: matyrobbrt/cloudflare-pr-previews@v1 | ||
with: | ||
gh_app_key: ${{ secrets.CLOUDFLARE_PAGES_DEPLOYMENTS_GH_APP_KEY }} | ||
gh_app_name: ${{ secrets.CLOUDFLARE_PAGES_DEPLOYMENTS_GH_APP_NAME }} | ||
project_name: 'neoforged-docs-previews' | ||
env: | ||
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | ||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_PAGES_API_TOKEN }} |
1a8346d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploying with Cloudflare Pages
1a8346d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploying with Cloudflare Pages