Skip to content

Commit

Permalink
Added Github Pages workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanfox committed Jul 14, 2024
1 parent a7dfc8e commit 5e76366
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Build and Deploy Vue Application to Github Pages
on:
push:
branch: -main/master/{{name of the branch you want to trigger you action on}}
jobs:
build_deploy_vue:
runs-on: ubuntu-latest
name: Build and Deploy Vue
steps:
- uses: actions/checkout@v2
- id: Build-Deploy-Vue
uses: thefrustrateddev/[email protected]
with:
username: "{{ethanfox}}"
reponame: "{{art-institute-chicago}}"
token: ${{ secrets.GITHUB_TOKEN }} # no need to change this line this is used to create the branch in your application repository
7 changes: 1 addition & 6 deletions vue.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
module.exports = {
publicPath: process.env.NODE_ENV === "production" ? "/vue/dist/" : "/",
publicPath: "/${{ repoName }}/",
};

const router = createRouter({
history: createWebHistory("/vue/dist"),
routes,
});

0 comments on commit 5e76366

Please sign in to comment.