-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 1007 Bytes
/
Copy pathnexus-upload.yml
File metadata and controls
36 lines (30 loc) · 1007 Bytes
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
32
33
34
35
36
name: Upload latest release to Nexus Mods
on:
workflow_dispatch:
permissions:
contents: read
jobs:
nexus:
name: Upload to Nexus Mods
environment: nexusmods
runs-on: ubuntu-latest
steps:
- name: Download latest GitHub release
env:
GH_REPO: ${{ github.repository }}
GH_TOKEN: ${{ github.token }}
shell: bash
run: |
set -euo pipefail
tag="$(gh release view --json tagName --jq .tagName)"
gh release download "$tag" --pattern RandomContract.zip
echo "version=${tag#v}" >> "$GITHUB_ENV"
- name: Upload to Nexus Mods
uses: Nexus-Mods/upload-action@c96019556046053aa26044b44396cd38929daf23 # v1.0.0-beta.10
with:
api_key: ${{ secrets.NEXUSMODS_API_KEY }}
file_id: ${{ secrets.NEXUSMODS_FILE_ID }}
filename: RandomContract.zip
version: ${{ env.version }}
primary_mod_manager_download: true
update_mod_version: true