mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2024-11-24 10:54:16 +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 }}
|
||||
plugin:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
changelog: ${{ steps.build_release.outputs.changelog }}
|
||||
container:
|
||||
image: jugeeya/cargo-skyline:3.0.0-dkp-beta
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Build release NRO
|
||||
id: build_release
|
||||
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
|
||||
env:
|
||||
HOME: /root
|
||||
|
@ -100,10 +108,6 @@ jobs:
|
|||
mv static/libtraining_modpack_menu.nro ${{env.SMASH_PLUGIN_DIR}}/libtraining_modpack_menu.nro
|
||||
cp -r static/* ${{env.SMASH_WEB_DIR}}
|
||||
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
|
||||
uses: meeDamian/github-release@2.0
|
||||
with:
|
||||
|
@ -119,7 +123,7 @@ jobs:
|
|||
|
||||
## Changelog
|
||||
|
||||
${{steps.prepare_zip.outputs.changelog}}
|
||||
${{needs.plugin.outputs.changelog}}
|
||||
|
||||
|
||||
## Installation
|
||||
|
|
Loading…
Reference in a new issue