mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 18:13:25 +00:00
chore: use correct repo url for xcbeautify
This commit is contained in:
147
.github/workflows/build-mobile-comment.yml
vendored
147
.github/workflows/build-mobile-comment.yml
vendored
@@ -5,96 +5,95 @@ on:
|
|||||||
types: [created]
|
types: [created]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-android:
|
build-android:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.event.issue.pull_request && contains(github.event.comment.body, '/build')
|
if: github.event.issue.pull_request && contains(github.event.comment.body, '/build')
|
||||||
steps:
|
steps:
|
||||||
- uses: xt0rted/pull-request-comment-branch@v2
|
- uses: xt0rted/pull-request-comment-branch@v2
|
||||||
id: comment-branch
|
id: comment-branch
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ steps.comment-branch.outputs.head_ref }}
|
ref: ${{ steps.comment-branch.outputs.head_ref }}
|
||||||
|
|
||||||
- name: Install Node.js
|
- name: Install Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 21
|
node-version: 21
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v3
|
- uses: pnpm/action-setup@v3
|
||||||
name: Install pnpm
|
name: Install pnpm
|
||||||
with:
|
with:
|
||||||
version: 8
|
version: 8
|
||||||
run_install: false
|
run_install: false
|
||||||
|
|
||||||
- name: Set up JDK 17
|
- name: Set up JDK 17
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
java-version: '17'
|
java-version: "17"
|
||||||
distribution: 'temurin'
|
distribution: "temurin"
|
||||||
|
|
||||||
- name: Setup Android SDK
|
- name: Setup Android SDK
|
||||||
uses: android-actions/setup-android@v3
|
uses: android-actions/setup-android@v3
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
|
|
||||||
- name: Build Android app
|
- name: Build Android app
|
||||||
run: cd apps/expo && pnpm apk
|
run: cd apps/expo && pnpm apk
|
||||||
|
|
||||||
- name: Upload movie-web.apk as artifact
|
- name: Upload movie-web.apk as artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: apk
|
name: apk
|
||||||
path: ./apps/expo/android/app/build/movie-web.apk
|
path: ./apps/expo/android/app/build/movie-web.apk
|
||||||
|
|
||||||
build-ios:
|
build-ios:
|
||||||
runs-on: macos-14
|
runs-on: macos-14
|
||||||
if: github.event.issue.pull_request && contains(github.event.comment.body, '/build')
|
if: github.event.issue.pull_request && contains(github.event.comment.body, '/build')
|
||||||
steps:
|
steps:
|
||||||
- uses: xt0rted/pull-request-comment-branch@v2
|
- uses: xt0rted/pull-request-comment-branch@v2
|
||||||
id: comment-branch
|
id: comment-branch
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ steps.comment-branch.outputs.head_ref }}
|
ref: ${{ steps.comment-branch.outputs.head_ref }}
|
||||||
|
|
||||||
- name: Xcode Select Version
|
- name: Xcode Select Version
|
||||||
uses: maxim-lobanov/setup-xcode@v1
|
uses: maxim-lobanov/setup-xcode@v1
|
||||||
with:
|
with:
|
||||||
xcode-version: '15.1.0'
|
xcode-version: "15.1.0"
|
||||||
|
|
||||||
- name: Install Node.js
|
- name: Install Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 21
|
node-version: 21
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v3
|
- uses: pnpm/action-setup@v3
|
||||||
name: Install pnpm
|
name: Install pnpm
|
||||||
with:
|
with:
|
||||||
version: 8
|
version: 8
|
||||||
run_install: false
|
run_install: false
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
|
|
||||||
- name: Install xcbeautify
|
- name: Install xcbeautify
|
||||||
uses: Cyberbeni/install-swift-tool@v2
|
uses: Cyberbeni/install-swift-tool@v2
|
||||||
with:
|
with:
|
||||||
url: https://github.com/Cyberbeni/xcbeautify
|
url: https://github.com/cpisciotta/xcbeautify
|
||||||
|
|
||||||
- name: Build iOS app
|
- name: Build iOS app
|
||||||
run: cd apps/expo && pnpm ipa
|
run: cd apps/expo && pnpm ipa
|
||||||
|
|
||||||
- name: Upload movie-web.ipa as artifact
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: ipa
|
|
||||||
path: ./apps/expo/ios/build/movie-web.ipa
|
|
||||||
|
|
||||||
|
- name: Upload movie-web.ipa as artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: ipa
|
||||||
|
path: ./apps/expo/ios/build/movie-web.ipa
|
||||||
|
8
.github/workflows/build-mobile.yml
vendored
8
.github/workflows/build-mobile.yml
vendored
@@ -31,8 +31,8 @@ jobs:
|
|||||||
- name: Set up JDK 17
|
- name: Set up JDK 17
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
java-version: '17'
|
java-version: "17"
|
||||||
distribution: 'temurin'
|
distribution: "temurin"
|
||||||
|
|
||||||
- name: Setup Android SDK
|
- name: Setup Android SDK
|
||||||
uses: android-actions/setup-android@v3
|
uses: android-actions/setup-android@v3
|
||||||
@@ -59,7 +59,7 @@ jobs:
|
|||||||
- name: Xcode Select Version
|
- name: Xcode Select Version
|
||||||
uses: maxim-lobanov/setup-xcode@v1
|
uses: maxim-lobanov/setup-xcode@v1
|
||||||
with:
|
with:
|
||||||
xcode-version: '15.1.0'
|
xcode-version: "15.1.0"
|
||||||
|
|
||||||
- name: Install Node.js
|
- name: Install Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
@@ -78,7 +78,7 @@ jobs:
|
|||||||
- name: Install xcbeautify
|
- name: Install xcbeautify
|
||||||
uses: Cyberbeni/install-swift-tool@v2
|
uses: Cyberbeni/install-swift-tool@v2
|
||||||
with:
|
with:
|
||||||
url: https://github.com/Cyberbeni/xcbeautify
|
url: https://github.com/cpisciotta/xcbeautify
|
||||||
|
|
||||||
- name: Build iOS app
|
- name: Build iOS app
|
||||||
run: cd apps/expo && pnpm ipa
|
run: cd apps/expo && pnpm ipa
|
||||||
|
48
.github/workflows/release-mobile.yml
vendored
48
.github/workflows/release-mobile.yml
vendored
@@ -13,22 +13,22 @@ permissions:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
bump-version:
|
bump-version:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Automated Version Bump
|
- name: Automated Version Bump
|
||||||
uses: phips28/gh-action-bump-version@v11.0.0
|
uses: phips28/gh-action-bump-version@v11.0.0
|
||||||
with:
|
with:
|
||||||
skip-tag: 'true'
|
skip-tag: "true"
|
||||||
commit-message: 'chore: bump mobile version to {{version}} [skip ci]'
|
commit-message: "chore: bump mobile version to {{version}} [skip ci]"
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
PACKAGEJSON_DIR: 'apps/expo'
|
PACKAGEJSON_DIR: "apps/expo"
|
||||||
|
|
||||||
build-android:
|
build-android:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -55,8 +55,8 @@ jobs:
|
|||||||
- name: Set up JDK 17
|
- name: Set up JDK 17
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
java-version: '17'
|
java-version: "17"
|
||||||
distribution: 'temurin'
|
distribution: "temurin"
|
||||||
|
|
||||||
- name: Setup Android SDK
|
- name: Setup Android SDK
|
||||||
uses: android-actions/setup-android@v3
|
uses: android-actions/setup-android@v3
|
||||||
@@ -87,7 +87,7 @@ jobs:
|
|||||||
- name: Xcode Select Version
|
- name: Xcode Select Version
|
||||||
uses: maxim-lobanov/setup-xcode@v1
|
uses: maxim-lobanov/setup-xcode@v1
|
||||||
with:
|
with:
|
||||||
xcode-version: '15.1.0'
|
xcode-version: "15.1.0"
|
||||||
|
|
||||||
- name: Install Node.js
|
- name: Install Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
@@ -106,7 +106,7 @@ jobs:
|
|||||||
- name: Install xcbeautify
|
- name: Install xcbeautify
|
||||||
uses: Cyberbeni/install-swift-tool@v2
|
uses: Cyberbeni/install-swift-tool@v2
|
||||||
with:
|
with:
|
||||||
url: https://github.com/Cyberbeni/xcbeautify
|
url: https://github.com/cpisciotta/xcbeautify
|
||||||
|
|
||||||
- name: Build iOS app
|
- name: Build iOS app
|
||||||
run: cd apps/expo && pnpm ipa
|
run: cd apps/expo && pnpm ipa
|
||||||
@@ -155,8 +155,8 @@ jobs:
|
|||||||
app-repo:
|
app-repo:
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
environment:
|
environment:
|
||||||
name: github-pages
|
name: github-pages
|
||||||
url: ${{ steps.deployment.outputs.page_url }}
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build-ios, release-app]
|
needs: [build-ios, release-app]
|
||||||
steps:
|
steps:
|
||||||
@@ -174,10 +174,10 @@ jobs:
|
|||||||
- name: Get new version and release date
|
- name: Get new version and release date
|
||||||
id: vars
|
id: vars
|
||||||
run: |
|
run: |
|
||||||
VERSION=$(jq -r '.version' apps/expo/package.json)
|
VERSION=$(jq -r '.version' apps/expo/package.json)
|
||||||
DATE=$(date -Iseconds)
|
DATE=$(date -Iseconds)
|
||||||
echo "::set-output name=version::$VERSION"
|
echo "::set-output name=version::$VERSION"
|
||||||
echo "::set-output name=date::$DATE"
|
echo "::set-output name=date::$DATE"
|
||||||
|
|
||||||
- name: Update app-repo.json
|
- name: Update app-repo.json
|
||||||
run: |
|
run: |
|
||||||
|
Reference in New Issue
Block a user