Skip to content

Commit

Permalink
Merge branch 'neoforged:main' into patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
tmvkrpxl0 authored Jul 29, 2023
2 parents 11130ce + 708ab42 commit 1a8346d
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build-pr.yml
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/
24 changes: 24 additions & 0 deletions .github/workflows/preview-pr.yml
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 }}

2 comments on commit 1a8346d

@neoforged-pages-deployments
Copy link

Choose a reason for hiding this comment

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

Deploying with Cloudflare Pages

Name Result
Last commit: 1a8346d5376d5c0c945ef3884bca3756ba0f5f4b
Status: ✅ Deploy successful!
Preview URL: https://176081fc.neoforged-docs-previews.pages.dev
PR Preview URL: https://pr-4.neoforged-docs-previews.pages.dev

@neoforged-pages-deployments
Copy link

Choose a reason for hiding this comment

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

Deploying with Cloudflare Pages

Name Result
Last commit: 1a8346d5376d5c0c945ef3884bca3756ba0f5f4b
Status: ✅ Deploy successful!
Preview URL: https://0638863e.neoforged-docs-previews.pages.dev
PR Preview URL: https://pr-4.neoforged-docs-previews.pages.dev

Please sign in to comment.