-
Notifications
You must be signed in to change notification settings - Fork 21
31 lines (30 loc) · 1.07 KB
/
unex-check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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_SESSION_COOKIE: ${{ secrets.UNEX_NEXUSMODS_SESSION_COOKIE }}
UNEX_APIKEY: ${{ secrets.UNEX_APIKEY }}
run: |
unex check --session-cookie $UNEX_SESSION_COOKIE
- name: Check Nexus API Key
# https://github.com/agc93/nexus-uploader
# https://www.nexusmods.com/users/myaccount?tab=api%20access
env:
UNEX_SESSION_COOKIE: ${{ secrets.UNEX_NEXUSMODS_SESSION_COOKIE }}
UNEX_APIKEY: ${{ secrets.UNEX_APIKEY }}
run: |
unex check --key $UNEX_APIKEY