-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Generate changelog for Studio on release
- Loading branch information
Showing
3 changed files
with
69 additions
and
11 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
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 |
---|---|---|
|
@@ -6,14 +6,61 @@ on: | |
- "v*.*.*" | ||
|
||
jobs: | ||
generate-changelog: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Setup Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: 3.12.6 | ||
- name: Setup Python environment | ||
run: | | ||
python -m venv .venv | ||
source .venv/bin/activate | ||
pip install requests | ||
- name: Generate release-changelog | ||
run: | | ||
source .venv/bin/activate | ||
python Scripts/generate_release.py "$(git log -1 --pretty=%B)" version_info.txt gamebanana_changelog.json github_changelog.md studio_changelog.md | ||
env: | ||
GITHUB_REPO: ${{ github.repository }} | ||
GITHUB_TOKEN: ${{ github.token }} | ||
|
||
- name: Upload version information | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: changelog-version | ||
path: version_info.txt | ||
- name: Upload GameBanana changelog | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: changelog-gamebanana | ||
path: gamebanana_changelog.json | ||
- name: Upload GitHub changelog | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: changelog-github | ||
path: github_changelog.md | ||
- name: Upload Studio changelog | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: changelog-studio | ||
path: studio_changelog.md | ||
|
||
|
||
build-studio: | ||
uses: ./.github/workflows/Build.CelesteStudio.yml | ||
with: | ||
build-cfg: Release | ||
needs: generate-changelog | ||
|
||
release: | ||
runs-on: ubuntu-latest | ||
needs: build-studio | ||
needs: | ||
- build-studio | ||
- generate-changelog | ||
|
||
steps: | ||
- name: Checkout | ||
|
@@ -61,20 +108,17 @@ jobs: | |
run: | | ||
dotnet build CelesteTAS-EverestInterop -c Release -p:DefineConstants=INSTALL_STUDIO -p:UseSymlinks=false | ||
- name: Download changelogs | ||
uses: actions/download-artifact@v4 | ||
with: | ||
pattern: changelog-* | ||
|
||
- name: Setup Python environment | ||
run: | | ||
python -m venv .venv | ||
source .venv/bin/activate | ||
pip install requests selenium | ||
- name: Generate release-changelog | ||
run: | | ||
source .venv/bin/activate | ||
python Scripts/generate_release.py "$(git log -1 --pretty=%B)" version_info.txt gamebanana_changelog.json github_changelog.md | ||
env: | ||
GITHUB_REPO: ${{ github.repository }} | ||
GITHUB_TOKEN: ${{ github.token }} | ||
|
||
- name: Prepare releases | ||
run: | | ||
# Version GameBanana .zip without v prefix | ||
|
@@ -89,7 +133,7 @@ jobs: | |
- name: Upload GameBanana release | ||
run: | | ||
source .venv/bin/activate | ||
python Scripts/gamebanana_upload.py ${{ env.RELEASE_FILE }} gamebanana_changelog.json version_info.txt | ||
python Scripts/gamebanana_upload.py ${{ env.RELEASE_FILE }} changelog-gamebanana/gamebanana_changelog.json changelog-version/version_info.txt | ||
env: | ||
GAMEBANANA_USERNAME: AutomaticRelease | ||
GAMEBANANA_PASSWORD: ${{ secrets.GAMEBANANA_PASSWORD }} | ||
|
@@ -101,7 +145,7 @@ jobs: | |
uses: softprops/action-gh-release@v1 | ||
with: | ||
name: ${{ env.RELEASE_TITLE }} | ||
body_path: github_changelog.md | ||
body_path: changelog-github/github_changelog.md | ||
files: | | ||
CelesteTAS.zip | ||
CelesteStudio-windows-x64.zip | ||
|
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