Skip to content

Commit

Permalink
Switching to master-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Aragas committed May 15, 2024
1 parent 3ea6f17 commit 7193364
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,23 @@ on:
paths-ignore:
- 'docs/**'
- '.github/workflows/docs.yml'
tags:
- 'v*.*.*'
pull_request:
branches: [ master ]

jobs:
get-changelog:
name: Get Changelog
get-version:
runs-on: ubuntu-latest
name: Get Version
outputs:
mod_version: ${{ steps.changelog.outputs.mod_version }}
version: ${{ steps.get-version.outputs.version }}
steps:
- uses: actions/checkout@v4

- name: Install and Run ChangelogParser
id: changelog
run: |
VERSION=${{ github.event.release.tag_name }}
echo "mod_version=${VERSION:1}" >> $GITHUB_OUTPUT
shell: bash
- name: Get Version
id: get-version
uses: beaconbrigade/[email protected]
with:
path: .

build-and-test:
name: Build and Test
Expand All @@ -55,12 +52,12 @@ jobs:
# GITHUB #
###########################
publish-on-github:
if: startsWith(github.ref, 'refs/tags/')
needs: [get-changelog, build-and-test]
if: github.ref == 'refs/heads/master'
needs: [get-version, build-and-test]
uses: BUTR/workflows/.github/workflows/release-github.yml@master
with:
mod_id: Vortex-Extension
mod_version: ${{ needs.get-changelog.outputs.mod_version }}
mod_version: ${{ needs.get-version.outputs.version }}
mod_description: |
Download and install using the Extensions panel in Vortex.
To manually install, extract the 7z to %APPDATA%/Vortex/plugins/game-mount-and-blade2.
Expand All @@ -70,14 +67,14 @@ jobs:
# NEXUSMODS #
###########################
publish-on-nexusmods:
if: startsWith(github.ref, 'refs/tags/')
needs: [get-changelog, build-and-test]
if: github.ref == 'refs/heads/master'
needs: [get-version, build-and-test]
uses: BUTR/workflows/.github/workflows/release-nexusmods.yml@master
with:
nexusmods_game_id: site
nexusmods_mod_id: 875
mod_filename: 'Vortex Extension'
mod_version: ${{ needs.get-changelog.outputs.mod_version }}
mod_version: ${{ needs.get-version.outputs.version }}
mod_description: |
Download and install using the Extensions panel in Vortex.
To manually install, extract the 7z to %APPDATA%/Vortex/plugins/game-mount-and-blade2.
Expand Down

0 comments on commit 7193364

Please sign in to comment.