From 2ad4ff77f9d3981cc9bf215ced73efc6c132344f Mon Sep 17 00:00:00 2001 From: Alexis Saettler Date: Sat, 17 Feb 2024 12:46:14 +0100 Subject: [PATCH 1/3] build: add continuous delivery --- .github/workflows/push.yml | 21 +++++++++++++++++++++ 1 file changed, 21 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..a404ea4 --- /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@v2 + with: + token: ${{ secrets.GH_TOKEN }} + event-type: ${{ secrets.EVENT_TYPE }} + repository: ${{ secrets.REPO_URL }} + client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "repository": "${{ github.repository }}"}' From 707f950fef812ae1417ecbcaa1dc5aadf3d6fd58 Mon Sep 17 00:00:00 2001 From: Alexis Saettler Date: Sat, 17 Feb 2024 12:54:04 +0100 Subject: [PATCH 2/3] update --- .github/workflows/push.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index a404ea4..237fb8a 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -13,9 +13,9 @@ jobs: steps: - name: Repository Dispatch - uses: peter-evans/repository-dispatch@v2 + uses: peter-evans/repository-dispatch@v3 with: token: ${{ secrets.GH_TOKEN }} - event-type: ${{ secrets.EVENT_TYPE }} - repository: ${{ secrets.REPO_URL }} + event-type: ${{ vars.EVENT_TYPE }} + repository: ${{ vars.REPO_URL }} client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "repository": "${{ github.repository }}"}' From f120039ffcdbdbbae465861cfd90a34e8ab42758 Mon Sep 17 00:00:00 2001 From: Alexis Saettler Date: Sat, 17 Feb 2024 13:05:31 +0100 Subject: [PATCH 3/3] add sourcemap --- vite.config.js | 3 +++ 1 file changed, 3 insertions(+) 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, + }, }; });