Skip to content

Commit

Permalink
Merge pull request #10 from hmlendea/gh-actions
Browse files Browse the repository at this point in the history
Integrated with GitHub Actions
  • Loading branch information
hmlendea authored Jul 4, 2022
2 parents 87cfac0 + 9e661fa commit 64bef9d
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/nexus-mods.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Nexus Mods

on:
push:
tags:
- 'v*.*.*'

jobs:
release:
name: Release
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1

- name: Download the release asset
run: wget "https://github.com/hmlendea/stellaris-ui-star-names/releases/download/${{github.ref_name}}/ui-star-names_${GITHUB_REF:11}.zip" -O "release.zip"

- name: Upload
uses: greatness7/nexusmods_file_updater@v2
with:
username: ${{secrets.NEXUS_UPLOADER_USERNAME}}
password: ${{secrets.NEXUS_UPLOADER_PASSWORD}}
game_domain_name: "stellaris"
mod_id: "74"
file_name: "ui-star-names"
file_version: ${{github.ref_name}}
update_version: true
new_existing_version: true
original_file: "ui-star-names.*"
file_description: "Changelog: https://github.com/hmlendea/stellaris-ui-star-names/releases/${{github.ref_name}}"
file_path: "release.zip"
31 changes: 31 additions & 0 deletions .github/workflows/steam-workshop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Steam Workshop

on:
push:
tags:
- 'v*.*.*'

jobs:
release:
name: Release
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1

- name: Download the release asset
run: |
wget "https://github.com/hmlendea/stellaris-ui-star-names/releases/download/${{github.ref_name}}/ui-star-names_${GITHUB_REF:11}.zip" -O "release.zip"
unzip "release.zip" -d "release/"
- name: Upload
uses: Weilbyte/steam-workshop-upload@v1
with:
appid: 281990
itemid: 2040215185
path: "release/"
changenote: "[url=https://github.com/hmlendea/stellaris-ui-star-names/releases/tag/${{github.ref_name}}]Version ${{github.ref_name}}[/url]"
env:
STEAM_USERNAME: ${{secrets.STEAM_USERNAME}}
STEAM_PASSWORD: ${{secrets.STEAM_PASSWORD}}
STEAM_TFASEED: ${{secrets.STEAM_2FA_SEED}}

0 comments on commit 64bef9d

Please sign in to comment.