-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: re-enable docusaurus build and deploy only redirects file to prod…
…uction
- Loading branch information
Showing
3 changed files
with
10 additions
and
5 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 |
---|---|---|
|
@@ -13,6 +13,8 @@ on: | |
push: | ||
branches: | ||
- master | ||
paths: | ||
- '/_redirects' # only rebuild and deploy when redirects file changes | ||
|
||
concurrency: | ||
group: ${{ github.workflow}}-${{ github.ref }} | ||
|
@@ -28,10 +30,12 @@ jobs: | |
with: | ||
node-version: 20.x | ||
|
||
- name: Create redirects file for legacy netlify ui.dhis2.nu site | ||
run: | | ||
mkdir dist | ||
cp ./docs/static/_redirects dist/_redirects | ||
# We use Netlify only for deploy previews, production docs are hosted at developers.dhis2.org | ||
# Don't build anything, just copy the _redirects file into the dist directory | ||
|
||
- run: | | ||
mkdir dist | ||
cp _redirects dist/_redirects | ||
- uses: nwtgck/[email protected] | ||
with: | ||
|
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