Use a personal access token to publish bins

The default GITHUB_TOKEN expires after 1h
This commit is contained in:
Clément Renault 2020-04-10 18:28:28 +02:00
parent 0185ffad89
commit 457b645f3c
No known key found for this signature in database
GPG Key ID: 0151CDAB43460DAE

View File

@ -33,7 +33,7 @@ jobs:
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
repo_token: ${{ secrets.PUBLISH_TOKEN }}
file: target/release/${{ matrix.artifact_name }}
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}
@ -57,7 +57,7 @@ jobs:
- name: Upload the binary to release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
repo_token: ${{ secrets.PUBLISH_TOKEN }}
file: target/release/meilisearch
asset_name: meilisearch-linux-armv7
tag: ${{ github.ref }}
@ -81,7 +81,7 @@ jobs:
- name: Upload the binary to release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
repo_token: ${{ secrets.PUBLISH_TOKEN }}
file: target/release/meilisearch
asset_name: meilisearch-linux-armv8
tag: ${{ github.ref }}