From 52144735f728d959848b477fa5c834ab2b954bec Mon Sep 17 00:00:00 2001 From: YouHaveTrouble Date: Fri, 24 Mar 2023 23:29:44 +0100 Subject: [PATCH] auto deployment on release --- .github/workflows/deploy.yml | 16 ++++++++++++++++ vite.config.ts | 3 ++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..53106ae --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,16 @@ +name: Build Vue +on: + release: + types: [published] +jobs: + build_vue: + runs-on: ubuntu-latest + name: Build Vue + steps: + - uses: actions/checkout@v2 + - id: Build-Vue + uses: xRealNeon/VuePagesAction@1.0.1 + with: + username: 'YouHaveTrouble' + reponame: 'GuildMaster' + token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/vite.config.ts b/vite.config.ts index de5cb31..c8bada4 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -10,5 +10,6 @@ export default defineConfig({ alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) } - } + }, + base: "/GuildMaster/" })