fix: use isSelected instead of selected in ProxyView #111
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: Build Pre-Release | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - dev | |
| jobs: | |
| BuildPreRelease: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| - name: Read version | |
| id: version | |
| run: | | |
| VERSION=$(grep 'versionName = ' build.gradle.kts | head -1 | sed 's/.*"\(.*\)".*/\1/') | |
| echo "version=$VERSION" >> $GITHUB_OUTPUT | |
| - name: Checkout submodules | |
| run: git submodule update --init --recursive --force | |
| - name: Fetch submodule tags | |
| run: git -C core/src/foss/golang/clash fetch --force --tags origin | |
| - name: Setup Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: "temurin" | |
| java-version: 21 | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Setup Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: "1.26" | |
| check-latest: true | |
| - name: Apply Patches | |
| run: | | |
| cd $(go env GOROOT) | |
| for p in $GITHUB_WORKSPACE/.github/patch/*.patch; do patch --verbose -p 1 < "$p"; done | |
| - uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cache/go-build | |
| ~/go/pkg/mod | |
| key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
| restore-keys: | | |
| ${{ runner.os }}-go- | |
| - name: Update CA | |
| run: | | |
| sudo apt-get update && sudo apt-get install ca-certificates | |
| sudo update-ca-certificates | |
| cp -f /etc/ssl/certs/ca-certificates.crt core/src/foss/golang/clash/component/ca/ca-certificates.crt | |
| - name: Setup signing (keystore) | |
| env: | |
| KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }} | |
| run: | | |
| echo "$KEYSTORE_BASE64" | base64 -d > release.keystore | |
| - name: Signing properties | |
| env: | |
| SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }} | |
| SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }} | |
| SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }} | |
| run: | | |
| touch signing.properties | |
| echo keystore.password="$SIGNING_STORE_PASSWORD" > signing.properties | |
| echo key.alias="$SIGNING_KEY_ALIAS" >> signing.properties | |
| echo key.password="$SIGNING_KEY_PASSWORD" >> signing.properties | |
| echo "Signing properties configured" | |
| - name: Pre-release Build | |
| if: success() | |
| run: ./gradlew --no-daemon app:assembleAlphaRelease | |
| # Delete old Prerelease-alpha release (ignore if not exists) | |
| - uses: dev-drprasad/delete-tag-and-release@v1.1 | |
| with: | |
| tag_name: Prerelease-alpha | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| delete_release: true | |
| continue-on-error: true | |
| - name: Upload Alpha | |
| uses: softprops/action-gh-release@v1 | |
| if: ${{ success() }} | |
| with: | |
| tag_name: Prerelease-alpha | |
| name: "Pre-release v${{ steps.version.outputs.version }}" | |
| files: app/build/outputs/apk/alpha/release/* | |
| prerelease: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |