Skip to content

Commit

Permalink
update edge to cdn on merge
Browse files Browse the repository at this point in the history
  • Loading branch information
meln1k authored Sep 27, 2023
1 parent be1e86b commit 5c8a7af
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: 'publish'
on:
pull_request:
push:
branches:
- main
Expand All @@ -22,7 +23,7 @@ jobs:
mkdir -p target/${{ github.sha }}
cp -r build/* target/${{ github.sha }}
- name: Publish to CDN
- name: Publish the new version to CDN
uses: BetaHuhn/do-spaces-action@v2
with:
access_key: ${{ secrets.FIX_UI_DO_SPACES_KEY }}
Expand All @@ -32,6 +33,16 @@ jobs:
out_dir: fix-ui
source: target

- name: Update the edge version to 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: |
Expand Down

0 comments on commit 5c8a7af

Please sign in to comment.