Compare commits

...

6 Commits

Author SHA1 Message Date
Vitalii Mikhailov 723cc44a26
Update README.md 1 year ago
Vitalii Mikhailov 25ba857505
Update refresh-unex-nexusmods.yml 1 year ago
Vitalii Mikhailov 324595777d
Update verify-nexusmods.yml 1 year ago
Vitalii Mikhailov 94f317513d
Create refresh-unex-nexusmods.yml 1 year ago
Vitalii Mikhailov c1e294510c
Update verify-unex-nexusmods.yml 1 year ago
Vitalii Mikhailov 9a8d6e2ae6
Update release-nexusmods.yml 1 year ago

@ -0,0 +1,28 @@
name: Refresh UNEX Credentials for NexusMods
on:
workflow_call:
secrets:
NEXUSMODS_SESSION_COOKIE:
required: true
jobs:
refresh-unex-credentials-nexusmods:
name: Refresh Credentials for NexusMods
runs-on: ubuntu-latest
steps:
- name: Setup .NET 8
uses: actions/setup-dotnet@master
with:
dotnet-version: 8.x.x
- name: Install BUTR.NexusUploader
run: dotnet tool install -g BUTR.NexusUploader
shell: pwsh
- name: Refresh NexusUploader credentials
run: unex refresh
env:
UNEX_SESSION_COOKIE: ${{ secrets.NEXUSMODS_SESSION_COOKIE }}
shell: pwsh

@ -8,8 +8,7 @@ on:
type: string
nexusmods_mod_id:
required: true
type: number
default: -1
type: string
mod_filename:
required: true
type: string
@ -27,7 +26,7 @@ on:
secrets:
NEXUSMODS_APIKEY:
required: true
NEXUSMODS_COOKIES:
NEXUSMODS_SESSION_COOKIE:
required: true
jobs:
@ -110,16 +109,15 @@ jobs:
run: dotnet tool install -g BUTR.NexusUploader;
shell: pwsh
- run: |
unex upload ${{ inputs.nexusmods_mod_id }} "${{ inputs.mod_filename }}.7z" -v "v${{ steps.set_version.outputs.mod_version }}" ;
unex changelog "v${{ steps.set_version.outputs.mod_version }}" "${{ steps.set_description.outputs.mod_changelog }}"
- name: Run BUTR.NexusUploader
run: |
unex upload ${{ inputs.nexusmods_mod_id }} "${{ inputs.mod_filename }}.7z" -v "v${{ steps.set_version.outputs.mod_version }}" -f "${{ inputs.mod_filename }}";
unex changelog "v${{ steps.set_version.outputs.mod_version }}" "${{ steps.set_description.outputs.mod_changelog }}" -m "${{ inputs.nexusmods_mod_id }}";
shell: pwsh
env:
UNEX_GAME: ${{ inputs.nexusmods_game_id }}
UNEX_MODID: ${{ inputs.nexusmods_mod_id }}
UNEX_FILENAME: ${{ inputs.mod_filename }}
UNEX_FILEDESCRIPTION: ${{ steps.set_description.outputs.mod_description }}
UNEX_PREVIOUSFILE: auto
UNEX_APIKEY: ${{ secrets.NEXUSMODS_APIKEY }}
UNEX_COOKIES: ${{ secrets.NEXUSMODS_COOKIES }}
UNEX_SESSION_COOKIE: ${{ secrets.NEXUSMODS_SESSION_COOKIE }}
UNEX_DEBUG: true
shell: pwsh

@ -5,7 +5,7 @@ on:
secrets:
NEXUSMODS_API_KEY:
required: true
NEXUSMODS_COOKIES:
NEXUSMODS_SESSION_COOKIE:
required: true
jobs:
@ -27,5 +27,5 @@ jobs:
run: drmu nexusmods check;
env:
NEXUSMOD_API_KEY: ${{ secrets.NEXUSMODS_API_KEY }}
NEXUSMOD_SESSION_COOKIE: ${{ secrets.NEXUSMODS_COOKIES }}
NEXUSMOD_SESSION_COOKIE: ${{ secrets.NEXUSMODS_SESSION_COOKIE }}
shell: pwsh

@ -5,7 +5,7 @@ on:
secrets:
NEXUSMODS_API_KEY:
required: true
NEXUSMODS_COOKIES:
NEXUSMODS_SESSION_COOKIE:
required: true
jobs:
@ -27,5 +27,5 @@ jobs:
run: unex check
env:
UNEX_APIKEY: ${{ secrets.NEXUSMODS_API_KEY }}
UNEX_COOKIES: ${{ secrets.NEXUSMODS_COOKIES }}
UNEX_SESSION_COOKIE: ${{ secrets.NEXUSMODS_SESSION_COOKIE }}
shell: pwsh

@ -5,5 +5,4 @@ You need to either switch to Steam Desktop Authenticator or extract the Shared K
If Steam Guard is not used, `STEAM_LOGIN` and `STEAM_PASSWORD` will be enough.
## NexusMods Workflow
Use Firefox and login to NexusMods. F12 and go to Network tab. Find any XHR method to nexusmods.com and copy the Cookies header. This is our `NEXUSMODS_COOKIES` secret.
Do not use other browser, their headers do not work with the workflow!
Use any broswe and login to NexusMods. F12 and go to Application tab. Find the Cookie tab in the Storage section. Copy the value of the `nexusmods_session` cookie. This is our `NEXUSMODS_SESSION_COOKIE` secret.

Loading…
Cancel
Save