From c51dfdfb76394a6d3d0c8e5f03d1fbb0b1d2cb5e Mon Sep 17 00:00:00 2001 From: lucirezac Date: Tue, 26 Mar 2024 11:31:20 +0100 Subject: [PATCH] GO-165 Add CDN repo --- .github/workflows/Release.yml | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index e94e3b5..2aa6687 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -12,18 +12,41 @@ env: GITHUB_TOKEN: ${{ secrets.SYSADMIN_GEOCODING_CONTROL_CREDENTIALS }} jobs: + clone-cdn: + name: Git clone CDN repository + runs-on: [ self-hosted, fernando ] + defaults: + run: + working-directory: ${{ env.WORKDIR }} + + steps: + - name: Checkout CDN repo + uses: actions/checkout@main + with: + path: ${{ env.WORKDIR }}/cdn.maptiler.com + repository: maptiler/cdn.maptiler.com + token: ${{ secrets.SYSADMIN_GEOCODING_CONTROL_CREDENTIALS }} + release: name: Build and release CDN runs-on: [ self-hosted, fernando ] + needs: clone-cdn defaults: run: - working-directory: ${{ env.WORKDIR }} + working-directory: ${{ env.WORKDIR }}/maptiler-geocoding-control steps: - name: Checkout repository uses: actions/checkout@v4 with: - path: ${{ env.WORKDIR }} + path: ${{ env.WORKDIR }}/maptiler-geocoding-control + + - name: Check out my other private repo + uses: actions/checkout@main + with: + path: ${{ env.WORKDIR }}/cdn.maptiler.com + repository: maptiler/cdn.maptiler.com + token: ${{ secrets.SYSADMIN_GEOCODING_CONTROL_CREDENTIALS }} - name: Install npm run: npm i