Showing with 46 additions and 33 deletions.
  1. +0 −32 .github/workflows/publish.yml
  2. +38 −1 .github/workflows/release.yml
  3. +8 −0 CHANGELOG.md
32 changes: 0 additions & 32 deletions .github/workflows/publish.yml

This file was deleted.

39 changes: 38 additions & 1 deletion .github/workflows/release.yml
Expand Up @@ -10,9 +10,46 @@ permissions:
pull-requests: write

jobs:
release-please:
release:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}

steps:
- uses: google-github-actions/release-please-action@v4
id: release
with:
release-type: simple

publish:
needs: release
runs-on: ubuntu-latest
if: ${{ needs.release.outputs.release_created }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# Necessary to retrieve the latest tag name
# MinVer will search for the latest tag to determine the new version
fetch-depth: 0

- name: Initialization
uses: ./.github/actions/init
with:
thunderstore-client: true

- name: Build
run: dotnet build
env:
BuildThunderstorePackage: true

- name: Publish to Thunderstore
run: tcli publish --config-path thunderstore.toml --file build/*.zip
env:
TCLI_AUTH_TOKEN: ${{ secrets.THUNDERSTORE_AUTH_TOKEN }}

- name: Upload artifact
run: gh release upload ${{ needs.release.outputs.tag_name }} build/*.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 8 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,13 @@
# Changelog

## [1.0.1](https://github.com/Distractic/LethalCompanyTemplate/compare/v1.0.0...v1.0.1) (2024-01-20)


### Bug Fixes

* **ci/cd:** Publish trigger ([20dbe80](https://github.com/Distractic/LethalCompanyTemplate/commit/20dbe8065435c6d14e3126420f0573619d908622))
* Publish to thunderstore after auto-release ([#14](https://github.com/Distractic/LethalCompanyTemplate/issues/14)) ([f19678d](https://github.com/Distractic/LethalCompanyTemplate/commit/f19678d3959aaf2fef994625f99cfccdb8a978b2))

## 1.0.0 (2024-01-20)


Expand Down