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

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

@ -5,7 +5,7 @@ on:
secrets: secrets:
NEXUSMODS_API_KEY: NEXUSMODS_API_KEY:
required: true required: true
NEXUSMODS_COOKIES: NEXUSMODS_SESSION_COOKIE:
required: true required: true
jobs: jobs:
@ -27,5 +27,5 @@ jobs:
run: unex check run: unex check
env: env:
UNEX_APIKEY: ${{ secrets.NEXUSMODS_API_KEY }} UNEX_APIKEY: ${{ secrets.NEXUSMODS_API_KEY }}
UNEX_COOKIES: ${{ secrets.NEXUSMODS_COOKIES }} UNEX_SESSION_COOKIE: ${{ secrets.NEXUSMODS_SESSION_COOKIE }}
shell: pwsh 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. If Steam Guard is not used, `STEAM_LOGIN` and `STEAM_PASSWORD` will be enough.
## NexusMods Workflow ## 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. 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.
Do not use other browser, their headers do not work with the workflow!

Loading…
Cancel
Save