Skip to content

Commit

Permalink
Pre release
Browse files Browse the repository at this point in the history
  • Loading branch information
kynex7510 committed Nov 2, 2024
1 parent becbddd commit b55fae7
Showing 1 changed file with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit b55fae7

Please sign in to comment.