Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GitHub Pages Example Deployment #15

Open
curran opened this issue Mar 11, 2024 · 1 comment
Open

Add GitHub Pages Example Deployment #15

curran opened this issue Mar 11, 2024 · 1 comment

Comments

@curran
Copy link
Collaborator

curran commented Mar 11, 2024

As a user who exported things out of VizHub, I want to use GitHub Pages to automate the deployment of my Vite app.

@curran
Copy link
Collaborator Author

curran commented Mar 11, 2024

image: node:16.5.0
pages:
  stage: deploy
  cache:
    key:
      files:
        - package-lock.json
      prefix: npm
    paths:
      - node_modules/
  script:
    - npm install
    - npm run build
    - cp -a dist/. public/
  artifacts:
    paths:
      - public
  rules:
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH

from https://vitejs.dev/guide/static-deploy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant