From 745f07aed5bd4740ae51e48bad8f52defa6fc1cf Mon Sep 17 00:00:00 2001 From: scarf Date: Sat, 16 Mar 2024 22:46:37 +0900 Subject: [PATCH] wip: try with base repo --- .github/workflows/release.yml | 244 +--------------------------------- 1 file changed, 2 insertions(+), 242 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 92460a808a6e..c0426adcd26d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,6 +18,8 @@ jobs: yesterday_tag_name: ${{ steps.env_vars.outputs.yesterday_tag_name }} steps: - uses: actions/checkout@v4 + with: + repository: cataclysmbnteam/Cataclysm-BN - id: env_vars run: | TAG_NAME=$(date -u --iso-8601 --date='1 day ago') @@ -88,245 +90,3 @@ jobs: These are the outputs for the experimental build of commit [${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }}) draft: false prerelease: true - - builds: - needs: [metadata, release] - if: ${{ needs.release.outputs.release_already_exists == 'false' }} - strategy: - fail-fast: false - matrix: - include: - - name: Windows Tiles x64 MSVC - artifact: windows-tiles-x64-msvc - arch: x64 - os: windows-2019 - mxe: none - ext: zip - content: application/zip - - name: Windows Tiles x32 MSVC - artifact: windows-tiles-x32-msvc - arch: x86 - os: windows-2019 - mxe: none - ext: zip - content: application/zip - - name: Windows Tiles x64 - mxe: x86_64 - mxe_apt: x86-64 - artifact: windows-tiles-x64 - os: ubuntu-20.04 - ext: zip - content: application/zip - - name: Windows Tiles x32 - mxe: i686 - mxe_apt: i686 - artifact: windows-tiles-x32 - os: ubuntu-20.04 - ext: zip - content: application/zip - - name: Linux Tiles x64 - os: ubuntu-22.04 - mxe: none - android: none - tiles: 1 - artifact: linux-tiles-x64 - ext: tar.gz - content: application/gzip - - name: linux-curses-x64 - os: ubuntu-22.04 - mxe: none - android: none - tiles: 0 - artifact: linux-curses-x64 - ext: tar.gz - content: application/gzip - - name: osx-curses-x64 - os: macos-12 - mxe: none - tiles: 0 - artifact: osx-curses-x64 - ext: dmg - content: application/x-apple-diskimage - - name: osx-tiles-x64 - os: macos-12 - mxe: none - tiles: 1 - artifact: osx-tiles-x64 - ext: dmg - content: application/x-apple-diskimage - - name: Android x64 - os: ubuntu-22.04 - mxe: none - android: arm64 - artifact: android-x64 - ext: apk - content: application/apk - - name: Android x32 - os: ubuntu-22.04 - mxe: none - android: arm32 - artifact: android-x32 - ext: apk - content: application/apk - - name: Android Bundle - os: ubuntu-22.04 - mxe: none - android: bundle - artifact: android-bundle - ext: aab - content: application/aap - - name: ${{ matrix.name }} - runs-on: ${{ matrix.os }} - - env: - ZSTD_CLEVEL: 17 - steps: - - uses: actions/checkout@v4 - - name: Create VERSION.TXT - shell: bash - run: | - cat >VERSION.txt < release.keystore.asc - gpg -d --passphrase "${{ secrets.KEYSTORE_PASSWORD }}" --batch release.keystore.asc > app/release.keystore - echo "${{ secrets.KEYSTORE_PROPERTIES }}" > keystore.properties.asc - gpg -d --passphrase "${{ secrets.KEYSTORE_PASSWORD }}" --batch keystore.properties.asc > keystore.properties - export UPSTREAM_BUILD_NUMBER="$((2037 + ${{ github.run_number }}))" - chmod +x gradlew - if [ ${{ matrix.android }} = arm64 ] - then - ./gradlew -Pj=$((`nproc`+0)) -Pabi_arm_32=false assembleExperimentalRelease - mv ./app/build/outputs/apk/experimental/release/*.apk ../cbn-${{ matrix.artifact }}-${{ needs.metadata.outputs.tag_name }}.apk - elif [ ${{ matrix.android }} = arm32 ] - then - ./gradlew -Pj=$((`nproc`+0)) -Pabi_arm_64=false assembleExperimentalRelease - mv ./app/build/outputs/apk/experimental/release/*.apk ../cbn-${{ matrix.artifact }}-${{ needs.metadata.outputs.tag_name }}.apk - elif [ ${{ matrix.android }} = bundle ] - then - ./gradlew -Pj=$((`nproc`+0)) bundleExperimentalRelease - mv ./app/build/outputs/bundle/experimentalRelease/*.aab ../cbn-${{ matrix.artifact }}-${{ needs.metadata.outputs.tag_name }}.aab - fi - - - name: Upload release asset - id: upload-release-asset - uses: shogo82148/actions-upload-release-asset@v1.7.4 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ needs.release.outputs.upload_url }} - asset_path: cbn-${{ matrix.artifact }}-${{ needs.metadata.outputs.tag_name }}.${{ matrix.ext }} - asset_name: cbn-${{ matrix.artifact }}-${{ needs.metadata.outputs.tag_name }}.${{ matrix.ext }} - asset_content_type: ${{ matrix.content }}