From de2548f7725a099e49b382661b02d690665bf940 Mon Sep 17 00:00:00 2001 From: Nikita Melkozerov Date: Wed, 27 Sep 2023 15:16:07 +0200 Subject: [PATCH] Update edge version to cdn on merge (#8) --- .github/workflows/publish.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 523eb266..252ce3e4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,7 +22,7 @@ jobs: mkdir -p target/${{ github.sha }} cp -r build/* target/${{ github.sha }} - - name: Publish to CDN + - name: Publish the new version to the CDN uses: BetaHuhn/do-spaces-action@v2 with: access_key: ${{ secrets.FIX_UI_DO_SPACES_KEY }} @@ -32,6 +32,16 @@ jobs: out_dir: fix-ui source: target + - name: Update the edge version to the CDN + uses: BetaHuhn/do-spaces-action@v2 + with: + access_key: ${{ secrets.FIX_UI_DO_SPACES_KEY }} + secret_key: ${{ secrets.FIX_UI_DO_SPACES_SECRET }} + space_name: ${{ secrets.FIX_UI_DO_SPACE_NAME }} + space_region: ${{ secrets.FIX_UI_DO_SPACE_REGION }} + out_dir: fix-ui/edge + source: target/${{ github.sha }} + - name: Create a patch with the new version # writes the file with a config map definition run: |