Skip to content

Commit

Permalink
Merge pull request #71 from Leo-Nicolle/develop
Browse files Browse the repository at this point in the history
Release Books
  • Loading branch information
Leo-Nicolle authored Mar 2, 2024
2 parents be45a75 + 897f123 commit 41a1da4
Show file tree
Hide file tree
Showing 60 changed files with 97,736 additions and 640 deletions.
22 changes: 1 addition & 21 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,6 @@ jobs:
with:
node-version: "18"

# - name: Determine Deployment Type
# if: ${{ success() }}
# run: |
# echo "DEPLOY_ASSETS=${{ contains(toJson(github.event.pull_request.labels.*.name), 'deploy:assets') }}" >> $GITHUB_ENV
# echo "DEPLOY_SERVER=${{ contains(toJson(github.event.pull_request.labels.*.name), 'deploy:server') }}" >> $GITHUB_ENV
# echo "DEPLOY_CLIENT=${{ contains(toJson(github.event.pull_request.labels.*.name), 'deploy:client') }}" >> $GITHUB_ENV
# if [[ $DEPLOY_ASSETS == 'false' && $DEPLOY_SERVER == 'false' && $DEPLOY_CLIENT == 'false' ]]; then
# exit 1;
# fi

- name: Install Dependencies
if: ${{ success() }}
run: npm ci
Expand All @@ -53,21 +43,11 @@ jobs:
- name: Deploy
if: ${{ success() }}
run: |
# if [ "$DEPLOY_ASSETS" = 'true' ]; then
# echo "Deploying JS assets"
# ssh -i $KEY $TARGET "rm -rf $ASSETS && mkdir -p $ASSETS"
# scp -i $KEY -r dist/public/assets/* "$TARGET:$ASSETS"
# scp -i $KEY -r dist/public/index.html "$TARGET:$INDEX_HTML"
# fi
# if [ "$DEPLOY_CLIENT" = 'true' ]; then
echo "Deploying full client"
ssh -i $KEY $TARGET "rm -rf $PUBLIC && mkdir -p $PUBLIC"
scp -i $KEY -r dist/public/* "$TARGET:$PUBLIC"
ssh -i $KEY $TARGET "cp $DICOS/*.zip $PUBLIC/assets"
# fi
# if [ "$DEPLOY_SERVER" = 'true' ]; then
ssh -i $KEY $TARGET "cp $DICOS/*.zip $PUBLIC"
echo "Deploying server code"
scp -i $KEY -r dist/server.js "$TARGET:$SERVER"
# fi
- name: Cleanup
run: "rm -f $KEY && rm -rf ~/.ssh"
29 changes: 0 additions & 29 deletions .github/workflows/main.yml

This file was deleted.

4 changes: 2 additions & 2 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"pretest": "rm -rf reports/ && vite build --mode testing",
"update:snapshot": "UPDATE_SNAPSHOTS=true vitest run --mode testing Grid-view",
"test": "vitest run --mode testing",
"test2": "vitest",
"test2": "vitest run -c vitest.config.ts",
"lint": "vue-cli-service lint"
},
"dependencies": {
Expand Down Expand Up @@ -104,4 +104,4 @@
"not dead",
"not ie 11"
]
}
}
Loading

0 comments on commit 41a1da4

Please sign in to comment.