fix inconsistent namespaces #29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| workflow_dispatch: | |
| inputs: {} | |
| push: | |
| branches: [ main ] | |
| paths-ignore: | |
| - '.github/**' | |
| - 'docs/**' | |
| - 'assets/**' | |
| - '.vscode/**' | |
| - '*.yml' | |
| - '*.json' | |
| - '*.md' | |
| - '.gitignore' | |
| - '.gitattributes' | |
| env: | |
| BASE_VERSION: "1.0" | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| name: "Checkout code" | |
| - name: Get version info | |
| id: version_info | |
| run: | | |
| echo "build_version=${{ env.BASE_VERSION }}.${{ github.run_number }}" >> $GITHUB_OUTPUT | |
| echo "prev_build_version=${{ env.BASE_VERSION }}.$((${{ github.run_number }} - 1))" >> $GITHUB_OUTPUT | |
| echo "git_short_hash=$(git rev-parse --short "${{ github.sha }}")" >> $GITHUB_OUTPUT | |
| shell: bash | |
| - name: Run GLI | |
| run: | | |
| gh release download -R GreemDev/GLI -O gli.exe -p 'GitLabCli-win_x64.exe' | |
| ./gli.exe --access-token=${{ secrets.GITLAB_TOKEN }} --project=ryubing/update-server --command=CreateTag "${{ steps.version_info.outputs.build_version }}|${{ steps.version_info.outputs.git_short_hash }}" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: actions/setup-dotnet@v4 | |
| name: "Install .NET SDK" | |
| with: | |
| global-json-file: global.json | |
| - name: Compile | |
| run: bash build.sh ${{ steps.version_info.outputs.build_version }} false | |
| - name: Compile & publish client library | |
| run: | | |
| cd src/Client | |
| dotnet build -o ../../nuget_build/client -p:Version="${{ steps.version_info.outputs.build_version }}" -p:PackageReleaseNotes="https://git.ryujinx.app/ryubing/update-server/-/compare/${{ steps.version_info.outputs.prev_build_version }}...${{ steps.version_info.outputs.build_version }}" | |
| cd ../../ | |
| cd src/Common | |
| dotnet build -o ../../nuget_build/common -p:Version="${{ steps.version_info.outputs.build_version }}" -p:PackageReleaseNotes="https://git.ryujinx.app/ryubing/update-server/-/compare/${{ steps.version_info.outputs.prev_build_version }}...${{ steps.version_info.outputs.build_version }}" | |
| cd ../../ | |
| dotnet nuget add source "https://git.ryujinx.app/api/v4/projects/71/packages/nuget/index.json" --name gitlab --username ryuadmin --password ${{ secrets.GITLAB_TOKEN }} --store-password-in-clear-text | |
| dotnet nuget push "nuget_build/client/Ryujinx.UpdateClient.${{ steps.version_info.outputs.build_version }}.nupkg" --source gitlab | |
| dotnet nuget push "nuget_build/common/Ryujinx.Systems.Update.Common.${{ steps.version_info.outputs.build_version }}.nupkg" --source gitlab | |
| - name: Create release | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| name: "Ryubing UpdateServer V${{ steps.version_info.outputs.build_version }}" | |
| tag: ${{ steps.version_info.outputs.build_version }} | |
| draft: 'false' | |
| artifacts: "artifacts/*" | |
| body: "**[Changes since last build](https://git.ryujinx.app/ryubing/update-server/-/compare/${{ steps.version_info.outputs.prev_build_version }}...${{ steps.version_info.outputs.build_version }})**" | |
| omitBodyDuringUpdate: true | |
| owner: Ryubing | |
| repo: UpdateServer | |
| token: ${{ secrets.GITHUB_TOKEN }} |