switch to using a custom GITHUB_TOKEN for doing releases

This commit is contained in:
Lex Berezhny 2021-07-26 23:30:00 -04:00
parent b7d58bcdbc
commit f7cae69704

View file

@ -149,7 +149,7 @@ jobs:
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v2
- name: upload binaries - name: upload binaries
env: env:
GITHUB_TOKEN: ${{ github.token }} GITHUB_TOKEN: ${{ secrets.RELEASE_API_TOKEN }}
run: | run: |
pip install githubrelease pip install githubrelease
chmod +x lbrynet-macos/lbrynet chmod +x lbrynet-macos/lbrynet
@ -158,11 +158,8 @@ jobs:
zip --junk-paths lbrynet-linux.zip lbrynet-linux/lbrynet zip --junk-paths lbrynet-linux.zip lbrynet-linux/lbrynet
zip --junk-paths lbrynet-windows.zip lbrynet-windows/lbrynet.exe zip --junk-paths lbrynet-windows.zip lbrynet-windows/lbrynet.exe
ls -lh ls -lh
githubrelease release lbryio/lbry-sdk list
githubrelease release lbryio/lbry-sdk info ${GITHUB_REF#refs/tags/} githubrelease release lbryio/lbry-sdk info ${GITHUB_REF#refs/tags/}
githubrelease release --github-token ${GITHUB_TOKEN} lbryio/lbry-sdk list githubrelease asset lbryio/lbry-sdk upload ${GITHUB_REF#refs/tags/} \
githubrelease release --github-token ${GITHUB_TOKEN} lbryio/lbry-sdk info ${GITHUB_REF#refs/tags/}
echo "${GITHUB_REF#refs/tags/}"
githubrelease --no-progress asset lbryio/lbry-sdk upload ${GITHUB_REF#refs/tags/} \
lbrynet-mac.zip lbrynet-linux.zip lbrynet-windows.zip lbrynet-mac.zip lbrynet-linux.zip lbrynet-windows.zip
githubrelease --no-progress release lbryio/lbry-sdk publish ${GITHUB_REF#refs/tags/} githubrelease release lbryio/lbry-sdk publish ${GITHUB_REF#refs/tags/}