Skip to content

Commit

Permalink
use yaclog action
Browse files Browse the repository at this point in the history
  • Loading branch information
drewcassidy committed Aug 28, 2024
1 parent a02c71e commit 6312c77
Showing 1 changed file with 10 additions and 17 deletions.
27 changes: 10 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,10 @@ jobs:
submodules: true
fetch-depth: 0 # get full history, not shallow clone

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install Python tools
run: |
python -m pip install --upgrade pip
python -m pip install yaclog
yaclog show
- name: Get Changelog Information
uses: drewcassidy/[email protected]
id: yaclog-show

- uses: drewcassidy/KSPBuildTools/.github/actions/setup-ckan@get-required-tools

- uses: drewcassidy/KSPBuildTools/.github/actions/compile@get-required-tools
Expand All @@ -41,12 +34,12 @@ jobs:

- name: Publish to Github
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
run: |
gh release create ${{ github.ref_name }} \
--notes "$(yaclog show -mb)" \
--title "$(yaclog show --name)" \
Shabby-*.zip \
Shabby-Release/GameData/Shabby/Shabby.version
run: >
gh release create ${{ github.ref_name }}
--notes-file "${{ steps.yaclog-show.outputs.body-file }}"
--title "${{ steps.yaclog-show.outputs.name }}"
Shabby-*.zip \
Shabby-Release/GameData/Shabby/Shabby.version
# We publish both the mod AND the version file, that way there's always a static latest version file to compare against
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6312c77

Please sign in to comment.