From b55fae736572755ea6382def1534484bbc81684f Mon Sep 17 00:00:00 2001 From: kynex7510 Date: Sun, 3 Nov 2024 00:51:43 +0100 Subject: [PATCH] Pre release --- ...ild-Release.yaml => Build-PreRelease.yaml} | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) rename .github/workflows/{Build-Release.yaml => Build-PreRelease.yaml} (70%) diff --git a/.github/workflows/Build-Release.yaml b/.github/workflows/Build-PreRelease.yaml similarity index 70% rename from .github/workflows/Build-Release.yaml rename to .github/workflows/Build-PreRelease.yaml index bb34ccb..304f938 100644 --- a/.github/workflows/Build-Release.yaml +++ b/.github/workflows/Build-PreRelease.yaml @@ -6,11 +6,8 @@ on: pull_request: branches: [ main ] -env: - BUILD_TYPE: Release - jobs: - Build-Release: + Build-PreRelease: runs-on: ubuntu-latest permissions: packages: write @@ -25,26 +22,27 @@ jobs: persist-credentials: false - name: Configure CMake - run: cmake -B ${{github.workspace}}/Build -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="$DEVKITPRO/cmake/3DS.cmake" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} + run: cmake -B ${{github.workspace}}/Build -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="$DEVKITPRO/cmake/3DS.cmake" -DCMAKE_BUILD_TYPE=Release - name: Build - run: cmake --build ${{github.workspace}}/Build --config ${{env.BUILD_TYPE}} + run: cmake --build ${{github.workspace}}/Build --config Release - name: Install - run: cmake --install ${{github.workspace}}/Build --prefix ${{github.workspace}}/Build/${{env.BUILD_TYPE}} + run: cmake --install ${{github.workspace}}/Build --prefix ${{github.workspace}}/Build/Release - name: Make ZIP run: | - (cd ${{github.workspace}}/Build/${{env.BUILD_TYPE}} && zip -r CTRL-${{github.sha}}.zip .) - mv ${{github.workspace}}/Build/${{env.BUILD_TYPE}}/CTRL-${{github.sha}}.zip . + (cd ${{github.workspace}}/Build/Release && zip -r CTRL-${{github.sha}}.zip .) + mv ${{github.workspace}}/Build/Release/CTRL-${{github.sha}}.zip . - name: Upload Assets uses: softprops/action-gh-release@v2 with: - name: Release-${{github.sha}} + name: PreRelease-${{github.sha}} files: CTRL-${{github.sha}}.zip fail_on_unmatched_files: true - tag_name: Release-${{github.run_id}} + tag_name: PreRelease-${{github.run_id}} + prerelease: true make_latest: true token: ${{secrets.GITHUB_TOKEN}} generate_release_notes: true \ No newline at end of file