diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index ed9ac82..3f406cb 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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