{"id":28403735,"url":"https://github.com/adele25p/pages-build-deployment-vue-spa","last_synced_at":"2026-04-24T22:33:25.059Z","repository":{"id":294694072,"uuid":"987061504","full_name":"adele25p/pages-build-deployment-vue-spa","owner":"adele25p","description":"Composite GitHub Actions to build and deploy Vue SPA projects to GitHub Pages.","archived":false,"fork":false,"pushed_at":"2025-06-01T13:12:21.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-23T17:50:02.791Z","etag":null,"topics":["actions","github-actions","github-pages","spa","vue","vuejs"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adele25p.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-20T14:14:18.000Z","updated_at":"2025-06-01T12:13:34.000Z","dependencies_parsed_at":"2025-05-21T16:44:39.053Z","dependency_job_id":"dea3fa83-b3fe-4f4e-bf22-c1dab8f5aa71","html_url":"https://github.com/adele25p/pages-build-deployment-vue-spa","commit_stats":null,"previous_names":["adele25p/pages-build-deployment-vue-spa"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/adele25p/pages-build-deployment-vue-spa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adele25p%2Fpages-build-deployment-vue-spa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adele25p%2Fpages-build-deployment-vue-spa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adele25p%2Fpages-build-deployment-vue-spa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adele25p%2Fpages-build-deployment-vue-spa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adele25p","download_url":"https://codeload.github.com/adele25p/pages-build-deployment-vue-spa/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adele25p%2Fpages-build-deployment-vue-spa/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32243309,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","github-actions","github-pages","spa","vue","vuejs"],"created_at":"2025-06-01T19:08:42.742Z","updated_at":"2026-04-24T22:33:25.042Z","avatar_url":"https://github.com/adele25p.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📦 pages-build-deployment-vue-spa\n\nThis repository provides two GitHub Actions to automate building and deploying a Vue Single Page Application (SPA) to GitHub Pages.\n\n## Available Actions\n**./build**: Builds the Vue SPA.  \n**./deploy**: Deploys the built files to GitHub Pages.\n\n## Quick Usage\nAdd this workflow to `.github/workflows/deploy.yml` :\n``` yaml\n# This is a GitHub Actions workflow file for building and deploying a Vue SPA to GitHub Pages.\n# It uses the adele25p/pages-build-deployment-vue-spa action to build the Vue SPA and deploy it to GitHub Pages.\n\nname: 'Build and Deploy Vue SPA to GitHub Pages'\ndescription: 'Builds and deploys a Vue Single Page Application (SPA) to GitHub Pages'\n\n# On\n# The workflow is triggered on push events to the main branch.\non :\n  push:\n    branches:\n      - main\n\n# Permissions\n# The action requires permissions to read the contents of the repository and write to the pages.\npermissions:\n  contents: read\n  pages: write\n  id-token: write\n\n# Jobs\n# The workflow consists of two jobs: build and deploy.\njobs:\n  build:                           # Build the Vue SPA\n    runs-on: ubuntu-latest\n    steps:\n      - name: Build\n        uses: adele25p/pages-build-deployment-vue-spa/build@v1\n\n  deploy:                          # Deploy the built Vue SPA to GitHub Pages\n    runs-on: ubuntu-latest\n    needs: build\n\n    # The deployment is done to the GitHub Pages environment.\n    environment:\n      name: github-pages\n      url: ${{ steps.deployment.outputs.page_url }}\n\n    steps:\n      - name: Deploy\n        id: deployment\n        uses: adele25p/pages-build-deployment-vue-spa/deploy@v1\n```\n\n## Requirements\nMake sure the following conditions are met before using the workflow:\n- [x] Your Vue Project is set up to build as a Single Page Application (SPA).  \n- [x] You have a valid `vue.config.js` file in your project root, configured for SPA mode.\n- [x] Your repository is configured to use GitHub Pages.\n- [x] The `vue.config.js` file should not include any configurations that conflict with SPA routing, such as `history` mode in Vue Router without proper fallback.\n\n## Customizing the Workflow\nYou can customize the build and deploy actions by passing inputs in the workflow file.  \nThis allows you to adapt the workflow to different tools such as **Vite**, **Vue CLI**, **Webpack**, **Nuxt (SPA) ...**\n\n## Action Details\nSee `build/README.md` for build action documentation.  \nSee `deploy/README.md` for deploy action documentation.\n\n## Useful Links\n| Resource | Description |\n| -------- | ----------- |\n| [GitHub Actions Documentation](https://docs.github.com/en/actions) | Learn how GitHub Actions work and how to customise workflows. |\n| [GitHub Pages Documentation](https://docs.github.com/en/pages) | Understand how to configure and use GitHub Pages. |\n| [Vue.js Deployment Guide](https://vuejs.org/guide/best-practices/production-deployment.html) | Official Vue documentation on deploying applications. |\n| [Vite Deployment Guide](https://vitejs.dev/guide/static-deploy.html) | Instructions for deploying Vite apps to static hosts. |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadele25p%2Fpages-build-deployment-vue-spa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadele25p%2Fpages-build-deployment-vue-spa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadele25p%2Fpages-build-deployment-vue-spa/lists"}