Skip to content

Commit

Permalink
#18 deploy project
Browse files Browse the repository at this point in the history
  • Loading branch information
sinatayebati committed May 20, 2024
1 parent ec5c711 commit 9a4d57f
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 30 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,17 @@ jobs:
- name: Build project
run: npm run build

- name: Build Docker image
run: docker build -t vue-pdf-annotate .

- name: Deploy Docker container to GitHub Pages
run: |
docker run -d -p 5173:5173 pdf-annotate
docker cp $(docker ps -ql):/app/dist ./dist
docker stop $(docker ps -ql)
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.GH_TOKEN }}
github_token: ${{ secrets.GH_TOKEN }}
publish_dir: ./dist
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@ COPY . .
# Build the application
RUN npm run build

# Install a lightweight HTTP server
RUN npm install -g serve

# Expose the port the app runs on
EXPOSE 5173

# Command to run the app
CMD ["serve", "-s", "dist", "-l", "5173"]
CMD ["npm", "run", "dev"]
50 changes: 25 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,33 @@
"name": "vuetify-project",
"version": "0.0.0",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"predeploy": "npm run build",
"deploy": "gh-pages -d dist"
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"predeploy": "npm run build",
"deploy": "gh-pages -d dist"
},
"dependencies": {
"@mdi/font": "5.9.55",
"@okta/okta-auth-js": "^7.4.0",
"@okta/okta-vue": "^5.6.0",
"annotpdf": "1.0.15",
"axios": "^1.1.3",
"pdfjs-dist": "4.2.67",
"pinia": "^2.0.23",
"roboto-fontface": "*",
"sass": "^1.56.1",
"vue": "^3.4.7",
"vue-router": "4",
"vuetify": "^3.5.3",
"webfontloader": "^1.0.0"
"@mdi/font": "5.9.55",
"@okta/okta-auth-js": "^7.4.0",
"@okta/okta-vue": "^5.6.0",
"axios": "^1.1.3",
"pinia": "^2.0.23",
"roboto-fontface": "*",
"sass": "^1.56.1",
"vue": "^3.4.7",
"vue-router": "4",
"vuetify": "^3.5.3",
"webfontloader": "^1.0.0",
"pdfjs-dist": "4.2.67",
"annotpdf": "1.0.15"
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.1.0",
"gh-pages": "^6.0.0",
"http-server": "^14.1.1",
"vite": "^4.5.3",
"vite-plugin-vuetify": "^1.0.0-alpha.12",
"vite-svg-loader": "5.1.0"
"@vitejs/plugin-vue": "^4.1.0",
"vite": "^4.5.3",
"vite-plugin-vuetify": "^1.0.0-alpha.12",
"vite-svg-loader": "5.1.0",
"gh-pages": "^3.2.3"
}
}
}

0 comments on commit 9a4d57f

Please sign in to comment.