From 5bcf456cb65525b68a71211a36b4fd18b66c9fc2 Mon Sep 17 00:00:00 2001 From: Alexis Saettler Date: Sat, 17 Feb 2024 13:06:03 +0100 Subject: [PATCH] build: add continuous delivery (#37) --- .github/workflows/push.yml | 21 +++++++++++++++++++++ vite.config.js | 3 +++ 2 files changed, 24 insertions(+) create mode 100644 .github/workflows/push.yml diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 0000000..237fb8a --- /dev/null +++ b/.github/workflows/push.yml @@ -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 }}"}' diff --git a/vite.config.js b/vite.config.js index a80bed2..efa4615 100644 --- a/vite.config.js +++ b/vite.config.js @@ -18,5 +18,8 @@ export default defineConfig(({ mode }) => { server: { host: host, }, + build: { + sourcemap: env.VITE_PROD_SOURCE_MAPS, + }, }; });