mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2025-03-23 06:46:11 +00:00
Attempt once again to put changelog in beta log
This commit is contained in:
parent
b69e4ff865
commit
db8d961480
1 changed files with 9 additions and 5 deletions
14
.github/workflows/rust.yml
vendored
14
.github/workflows/rust.yml
vendored
|
@ -33,12 +33,20 @@ jobs:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
plugin:
|
plugin:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
changelog: ${{ steps.build_release.outputs.changelog }}
|
||||||
container:
|
container:
|
||||||
image: jugeeya/cargo-skyline:3.0.0-dkp-beta
|
image: jugeeya/cargo-skyline:3.0.0-dkp-beta
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Build release NRO
|
- name: Build release NRO
|
||||||
|
id: build_release
|
||||||
run: |
|
run: |
|
||||||
|
# Grab changelog
|
||||||
|
# Grab latest tag, grab log vs. main, replace newlines with two newlines and a list marker
|
||||||
|
git log --pretty=format:%s `git tag --sort=-committerdate | head -1`...main | sed -z 's/\n/\n\n- /g' > changelog.txt
|
||||||
|
# Initial list marker
|
||||||
|
echo "changelog=- $(cat changelog.txt)" >> $GITHUB_OUTPUT
|
||||||
PATH=$PATH:/root/.cargo/bin:/opt/devkitpro/devkitA64/bin /root/.cargo/bin/cargo-skyline skyline build --release
|
PATH=$PATH:/root/.cargo/bin:/opt/devkitpro/devkitA64/bin /root/.cargo/bin/cargo-skyline skyline build --release
|
||||||
env:
|
env:
|
||||||
HOME: /root
|
HOME: /root
|
||||||
|
@ -100,10 +108,6 @@ jobs:
|
||||||
mv static/libtraining_modpack_menu.nro ${{env.SMASH_PLUGIN_DIR}}/libtraining_modpack_menu.nro
|
mv static/libtraining_modpack_menu.nro ${{env.SMASH_PLUGIN_DIR}}/libtraining_modpack_menu.nro
|
||||||
cp -r static/* ${{env.SMASH_WEB_DIR}}
|
cp -r static/* ${{env.SMASH_WEB_DIR}}
|
||||||
zip -r training_modpack_beta.zip atmosphere
|
zip -r training_modpack_beta.zip atmosphere
|
||||||
# Grab latest tag, grab log vs. main, replace newlines with two newlines and a list marker
|
|
||||||
git log --pretty=format:%s `git tag --sort=-committerdate | head -1`...main | sed -z 's/\n/\n\n- /g' > changelog.txt
|
|
||||||
# Initial list marker
|
|
||||||
echo "changelog=- $(cat changelog.txt)" >> $GITHUB_OUTPUT
|
|
||||||
- name: Update Release
|
- name: Update Release
|
||||||
uses: meeDamian/github-release@2.0
|
uses: meeDamian/github-release@2.0
|
||||||
with:
|
with:
|
||||||
|
@ -119,7 +123,7 @@ jobs:
|
||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
${{steps.prepare_zip.outputs.changelog}}
|
${{needs.plugin.outputs.changelog}}
|
||||||
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
Loading…
Add table
Reference in a new issue