-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into bad-tag-desc
- Loading branch information
Showing
3 changed files
with
66 additions
and
14 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 |
---|---|---|
|
@@ -43,14 +43,9 @@ jobs: | |
- name: Build index | ||
run: npm run build:index | ||
|
||
- name: Setup Pages | ||
uses: actions/configure-pages@v5 | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
- name: Deploy project | ||
uses: JamesIves/[email protected] | ||
with: | ||
path: "./public" | ||
|
||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 | ||
folder: ./public | ||
clean-exclude: pr-preview/ | ||
force: false |
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,57 @@ | ||
name: Deploy PR previews | ||
|
||
on: | ||
pull_request_target: | ||
branches: | ||
- main | ||
|
||
paths: | ||
- "**/*.*" | ||
- "!package.json" | ||
- "!.github/workflows" | ||
|
||
env: | ||
DEPLOY_REPO_OWNER: OpenDreamProject | ||
DEPLOY_REPO: od-dm-reference | ||
|
||
concurrency: preview-${{ github.ref }} | ||
|
||
jobs: | ||
deploy-preview: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
|
||
- name: Install dependencies | ||
uses: bahmutov/npm-install@v1 | ||
|
||
- name: Install Zora | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: [email protected] | ||
|
||
- name: Install Stork | ||
uses: baptiste0928/[email protected] | ||
with: | ||
crate: stork-search | ||
version: "1.6.0" | ||
|
||
- name: Build project | ||
run: npm run build -- -u "https://ref.opendrea.am/pr-preview/pr-${{ github.event.number }}" | ||
|
||
- name: Build index | ||
run: | | ||
npm run build:search-config -- -u "https://ref.opendre.am/pr-preview/pr-${{ github.event.number }}" | ||
npm run build:search-index | ||
- name: Deploy preview | ||
uses: rossjrw/pr-preview-action@v1 | ||
with: | ||
source-dir: ./public/ | ||
umbrella-dir: ./pr-preview/ | ||
deploy-repository: ${{ env.DEPLOY_REPO_OWNER }}/${{ env.DEPLOY_REPO }} | ||
token: ${{ secrets.PREVIEW_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