Skip to content

Commit

Permalink
fix deployment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
saenyakorn committed Dec 26, 2022
1 parent 064990c commit 645ce7f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 14 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ jobs:
- name: Build application
run: pnpm build

- name: Create .nojekyll file
run: touch dist/.nojekyll

- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
Expand Down
1 change: 0 additions & 1 deletion CNAME

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,3 @@ This project is developed using [Github Page](https://pages.github.com/). It's u

To deploy the project, one thing you have to do is `dispatching` the [Deployment Workflow](https://github.com/saenyakorn/utm-builder/actions/workflows/deploy.yaml) then the site will be deployed automatically using latest version of `main` branch.

> Don't forget to change CNAME file if you want to deploy to your own domain.
16 changes: 4 additions & 12 deletions svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,17 @@
import adapter from '@sveltejs/adapter-static'
import preprocess from 'svelte-preprocess'

const dev = 'production' === 'development'
import { vitePreprocess } from '@sveltejs/kit/vite'

/** @type {import('@sveltejs/kit').Config} */
const config = {
kit: {
adapter: adapter({
pages: 'dist',
assets: 'dist',
paths: {
// change below to your repo name
base: dev ? '' : '/utm-builder',
},
precompress: true,
}),
appDir: 'internal',
},
preprocess: [
preprocess({
postcss: true,
}),
],
preprocess: [vitePreprocess()],
}

export default config

0 comments on commit 645ce7f

Please sign in to comment.