-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
25b1c58
commit a5a186c
Showing
2 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Create release on tag push | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
name: Create release | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Zip up the files | ||
run: zip -r bg3-mod-profiles-for-linux.zip util bg3overlay bg3switch LICENSE README.md | ||
|
||
- name: Draft release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
token: ${{ secrets.RELEASE_TOKEN }} | ||
artifacts: "bg3-mod-profiles-for-linux.zip" | ||
bodyFile: "CHANGELOG.md" | ||
draft: true |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Publish to Nexusmods on release | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
name: Publish to Nexusmods | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Download release artifacts | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
run: gh release download ${{ github.ref_name }} | ||
|
||
- name: Publish to Nexusmods | ||
uses: hmlendea/nexusmods-update@latest | ||
with: | ||
account_email_address: ${{secrets.NEXUS_UPLOADER_EMAIL_ADDRESS}} | ||
account_password: ${{secrets.NEXUS_UPLOADER_PASSWORD}} | ||
nexus_game_id: "baldursgate3" | ||
nexus_mod_id: "3458" | ||
mod_file_name: "bg3-mod-profiles" | ||
mod_version: ${{github.ref_name}} | ||
file_description: "Changelog: https://git.alternerd.tv/alterNERDtive/bg3-mod-profiles/releases/${{github.ref_name}}" | ||
file_path: "bg3-mod-profiles.zip" |