Skip to content

Commit

Permalink
build: add continuous delivery (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin authored Feb 17, 2024
1 parent 2f60cbd commit 5bcf456
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Push

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

environment: deploy

steps:
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.GH_TOKEN }}
event-type: ${{ vars.EVENT_TYPE }}
repository: ${{ vars.REPO_URL }}
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "repository": "${{ github.repository }}"}'
3 changes: 3 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@ export default defineConfig(({ mode }) => {
server: {
host: host,
},
build: {
sourcemap: env.VITE_PROD_SOURCE_MAPS,
},
};
});

0 comments on commit 5bcf456

Please sign in to comment.