Skip to content

Commit

Permalink
Fix Github actions preview deploy (#4)
Browse files Browse the repository at this point in the history
* test

test

* Just warn on broken links

* Update docusaurus.config.js with temp baseUrl for pr preview

* Add slash

* Add /uppy.io/

* Add slash

* re-deploy preview
  • Loading branch information
arturi committed Apr 21, 2022
1 parent adcfb7a commit eb8f45f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Alter Docusaurus config baseUrl
env:
PR_NUMBER: ${{ github.event.number }}
run: |
sed -i "s/baseUrl: '\/'/baseUrl: '\/uppy.io\/pr-preview\/pr-"$PR_NUMBER"\/'/" docusaurus.config.js
shell: bash

- name: Install and Build
run: |
npm install
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Website

test

> ⚠️ Work in progress
This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator.
Expand Down

0 comments on commit eb8f45f

Please sign in to comment.