forked from Kurrawong/bgs-prez-ui-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
69 additions
and
30 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
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,64 @@ | ||
name: Deploy to GitHub Pages | ||
|
||
on: | ||
# Trigger the workflow every time you push to the `main` branch | ||
# Using a different branch name? Replace `main` with your branch’s name | ||
push: | ||
branches: [main] | ||
# Allows you to run this workflow manually from the Actions tab on GitHub. | ||
workflow_dispatch: | ||
|
||
env: | ||
VITE_ENABLED_PREZS: SpacePrez,VocPrez | ||
VITE_API_BASE_URL: https://api.gsq-prez.dev.kurrawong.ai | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout your repository using git | ||
uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Clone prez-ui | ||
run: | | ||
mkdir ./prez-ui && \ | ||
cd ./prez-ui && \ | ||
git init && \ | ||
git remote add origin https://github.com/RDFLib/prez-ui.git && \ | ||
git fetch --depth 1 origin refs/tags/$(cat ../PREZ_UI_GIT_TAG):refs/tags/$(cat ../PREZ_UI_GIT_TAG) && \ | ||
git checkout tags/$(cat ../PREZ_UI_GIT_TAG) | ||
- name: Install Node dependencies | ||
working-directory: ./prez-ui | ||
run: npm ci | ||
|
||
- name: Strip out Prez UI header and footer placeholders | ||
run: | | ||
sed -i 's+<header id="header"></header>+<div id="header"></div>+g' ./prez-ui/index.html | ||
sed -i 's+<footer id="footer"></footer>+<div id="footer"></div>+g' ./prez-ui/index.html | ||
- name: Copy QLD Gov Department of Resources theme | ||
run: | | ||
mv ./prez-ui/src/App.vue ./prez-ui/src/PrezApp.vue | ||
cp App.vue ./prez-ui/src/App.vue | ||
cp public/* ./prez-ui/public/ | ||
- name: Build website | ||
working-directory: ./prez-ui | ||
run: npm run build-only -- --base=/qld-resources-prez/ | ||
|
||
- name: Add index.html as GH Pages 404 page | ||
run: cp ./prez-ui/dist/index.html ./prez-ui/dist/404.html | ||
|
||
- name: Deploy to GitHub Pages 🚀 | ||
uses: JamesIves/github-pages-deploy-action@releases/v4 | ||
with: | ||
BRANCH: gh-pages | ||
FOLDER: ./prez-ui/dist |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v3.7.3 | ||
v3.7.2 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.