Check Nexus credentials #273
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Check Nexus credentials" | |
on: | |
workflow_dispatch: | |
jobs: | |
deploy: | |
if: github.repository_owner == 'alandtse' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Dotnet | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: 6.x.x | |
include-prerelease: false | |
- name: Download NexusUploader | |
run: dotnet tool install -g BUTR.NexusUploader | |
- name: Check Nexus Cookies | |
# https://github.com/agc93/nexus-uploader using fork https://github.com/BUTR/BUTR.NexusUploader | |
env: | |
UNEX_COOKIES: ${{ secrets.UNEX_COOKIES }} | |
UNEX_APIKEY: ${{ secrets.UNEX_APIKEY }} | |
run: | | |
unex check --cookie | |
- name: Check Nexus API Key | |
# https://github.com/agc93/nexus-uploader | |
# https://www.nexusmods.com/users/myaccount?tab=api%20access | |
env: | |
UNEX_COOKIES: ${{ secrets.UNEX_COOKIES }} | |
UNEX_APIKEY: ${{ secrets.UNEX_APIKEY }} | |
run: | | |
unex check --key $UNEX_APIKEY |