-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of https://github.com/IQSS/dataverse-frontend …
…into feature/174-refine-ui-styling-file-tab
- Loading branch information
Showing
89 changed files
with
10,939 additions
and
1,724 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 |
---|---|---|
@@ -0,0 +1,96 @@ | ||
name: 'Deploy to Beta Testing' | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: 'npm' | ||
|
||
- name: Create .npmrc | ||
run: | | ||
cp .npmrc.example .npmrc | ||
sed -i -e 's/<YOUR_GITHUB_AUTH_TOKEN>/${{ secrets.GITHUB_TOKEN }}/g' .npmrc | ||
sed -i -e 's/<YOUR_NPM_AUTH_TOKEN>/${{ secrets.NPM_AUTH_TOKEN }}/g' .npmrc | ||
- name: Install Dependencies | ||
run: npm install | ||
|
||
- name: Build Dataverse UI Library | ||
working-directory: packages/design-system | ||
run: npm run build | ||
|
||
- name: Create and populate .env file | ||
env: | ||
DATAVERSE_BACKEND_URL: ${{ secrets.BETA_DATAVERSE_BACKEND_URL }} | ||
run: | | ||
touch .env | ||
echo VITE_DATAVERSE_BACKEND_URL="$DATAVERSE_BACKEND_URL" >> .env | ||
shell: bash | ||
|
||
- name: Build with base path | ||
run: npm run build -- --base=/spa | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: built-site | ||
path: ./dist | ||
|
||
deploy-to-payara: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '11' | ||
|
||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: built-site | ||
path: ./dist | ||
|
||
- name: Get branch name | ||
id: branch-name | ||
uses: tj-actions/branch-names@v6 | ||
|
||
- name: Build war file | ||
working-directory: ./deployment/payara | ||
run: mvn package "-Dversion=${{ steps.branch-name.outputs.current_branch }}" | ||
|
||
- name: Copy war file to remote instance | ||
uses: appleboy/scp-action@master | ||
with: | ||
host: ${{ secrets.BETA_PAYARA_INSTANCE_HOST }} | ||
username: ${{ secrets.BETA_PAYARA_INSTANCE_USERNAME }} | ||
key: ${{ secrets.BETA_PAYARA_INSTANCE_SSH_PRIVATE_KEY }} | ||
source: './deployment/payara/target/dataverse-frontend.war' | ||
target: '/home/${{ secrets.BETA_PAYARA_INSTANCE_USERNAME }}' | ||
overwrite: true | ||
|
||
- name: Execute payara war deployment remotely | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.BETA_PAYARA_INSTANCE_HOST }} | ||
username: ${{ secrets.BETA_PAYARA_INSTANCE_USERNAME }} | ||
key: ${{ secrets.BETA_PAYARA_INSTANCE_SSH_PRIVATE_KEY }} | ||
script: | | ||
APPLICATION_NAME=dataverse-frontend | ||
APPLICATION_WAR_PATH=deployment/payara/target/$APPLICATION_NAME.war | ||
ASADMIN='/usr/local/payara6/bin/asadmin --user admin' | ||
DATAVERSE_FRONTEND=`$ASADMIN list-applications |grep $APPLICATION_NAME |awk '{print $1}'` | ||
$ASADMIN undeploy $DATAVERSE_FRONTEND | ||
$ASADMIN deploy --name $APPLICATION_NAME --contextroot /spa $APPLICATION_WAR_PATH |
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
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
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,4 +1,4 @@ | ||
POSTGRES_VERSION=13 | ||
DATAVERSE_DB_USER=dataverse | ||
SOLR_VERSION=8.11.1 | ||
SOLR_VERSION=9.3.0 | ||
REGISTRY=ghcr.io |
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
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
Oops, something went wrong.