diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index 4d391fa..584c88b 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -8,7 +8,8 @@ on: env: WORKDIR: release - GITHUB_TOKEN: ${{ secrets.SYSADMIN_GEOCODING_CONTROL_CREDENTIALS }} + # GITHUB_TOKEN: ${{ secrets.SYSADMIN_GEOCODING_CONTROL_CREDENTIALS }} # Variable needed for Git authentication + GH_TOKEN: ${{ secrets.SYSADMIN_GEOCODING_CONTROL_CREDENTIALS }} # Variable needed for GitHub CLI jobs: clone-cdn: @@ -24,7 +25,7 @@ jobs: with: path: ${{ env.WORKDIR }}/cdn.maptiler.com repository: maptiler/cdn.maptiler.com - token: ${{ secrets.SYSADMIN_GEOCODING_CONTROL_CREDENTIALS }} + token: ${{ env.GH_TOKEN }} release: name: Build and release CDN @@ -40,15 +41,8 @@ jobs: with: 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: GitHub CLI authentication - run: gh auth login --with-token ${{ secrets.SYSADMIN_GEOCODING_CONTROL_CREDENTIALS }} + run: gh auth login --with-token - name: Install npm run: npm i