Skip to content

Commit

Permalink
GO-165 Update authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
lucirezac committed Mar 26, 2024
1 parent 665d419 commit 5730026
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 5730026

Please sign in to comment.