-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
000e826
commit 46cf41b
Showing
298 changed files
with
18,815 additions
and
31,585 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,6 @@ build/ | |
docs/ | ||
assets/ | ||
ios/ | ||
android/ | ||
android/ | ||
expo-env.d.ts | ||
.expo |
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Cache Cocoapods | ||
description: Caches ios/Pods folder | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Cache Cocapoads | ||
uses: actions/cache@v3 | ||
with: | ||
path: ios/Pods | ||
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-pods- |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# https://github.com/actions/upload-artifact#maintaining-file-permissions-and-case-sensitive-files | ||
|
||
name: Download workspace | ||
description: Restores the contents of the workspace tarball, preserving file permissions | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Download workspace | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: release-workspace | ||
- name: Extract tar workspace archive to preserve file permissions | ||
run: tar -xvf workspace.tar | ||
shell: bash |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# https://github.com/actions/upload-artifact#maintaining-file-permissions-and-case-sensitive-files | ||
|
||
name: Upload workspace | ||
description: Uploads the contents of the workspace as a tarball, preserving file permissions | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Create tar workspace archive to preserve file permissions | ||
run: tar -cvf /tmp/workspace.tar . | ||
shell: bash | ||
- name: Upload workspace | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: release-workspace | ||
path: /tmp/workspace.tar |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Release Next | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
|
@@ -8,31 +8,24 @@ on: | |
|
||
concurrency: release | ||
|
||
env: | ||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | ||
SENTRY_ORG: ${{ secrets.SENTRY_ORG }} | ||
|
||
jobs: | ||
checks: | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
command: ['lint', 'test -- --ci --forceExit', 'types'] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-node@v2 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 16 | ||
node-version-file: .node-version | ||
cache: npm | ||
|
||
- run: npm ci | ||
|
||
- run: npm run ${{ matrix.command }} | ||
|
||
prepare: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-latest | ||
needs: checks | ||
outputs: | ||
release-version: ${{ steps.bump-version.outputs.next }} | ||
|
@@ -41,28 +34,16 @@ jobs: | |
with: | ||
user: Shabad OS Bot | ||
email: [email protected] | ||
|
||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.GH_BOT_TOKEN }} | ||
|
||
- uses: shabados/actions/bump-version@release/v2 | ||
id: bump-version | ||
with: | ||
prerelease: true | ||
|
||
- uses: shabados/actions/generate-changelog@release/v2 | ||
|
||
# .tar to preserve permissions - https://github.com/actions/upload-artifact#maintaining-file-permissions-and-case-sensitive-files | ||
- name: Create tar workspace archive to preserve file permissions | ||
run: tar -cvf /tmp/workspace.tar . | ||
|
||
- name: Upload workspace | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: release-workspace | ||
path: /tmp/workspace.tar | ||
- uses: ./.github/actions/upload-workspace | ||
|
||
build-release: | ||
needs: prepare | ||
|
@@ -78,90 +59,46 @@ jobs: | |
UPLOAD_KEYSTORE_PASSWORD: ${{ secrets.UPLOAD_KEYSTORE_PASSWORD }} | ||
UPLOAD_KEYSTORE_KEY_ALIAS: ${{ secrets.UPLOAD_KEYSTORE_KEY_ALIAS }} | ||
UPLOAD_KEYSTORE_KEY_PASSWORD: ${{ secrets.UPLOAD_KEYSTORE_KEY_PASSWORD }} | ||
SENTRY_PROJECT: ${{ matrix.platform }}-app | ||
SENTRY_RELEASE: ${{ matrix.platform }}-app@${{ needs.prepare.outputs.release-version }} | ||
ENVFILE: config/.env.next.${{ matrix.platform }} | ||
ENV: next | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- os: macos-11 | ||
- os: macos-latest | ||
platform: ios | ||
- os: ubuntu-22.04 | ||
- os: ubuntu-latest | ||
platform: android | ||
steps: | ||
- name: Download workspace | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: release-workspace | ||
|
||
# .tar to preserve permissions - https://github.com/actions/upload-artifact#maintaining-file-permissions-and-case-sensitive-files | ||
- name: Extract tar workspace archive to preserve file permissions | ||
run: tar -xvf workspace.tar | ||
|
||
- uses: ./.github/actions/download-workspace | ||
- uses: Homebrew/actions/setup-homebrew@master | ||
|
||
- uses: actions/setup-node@v2 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 16 | ||
node-version-file: .node-version | ||
cache: npm | ||
|
||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
|
||
- run: brew bundle | ||
|
||
- uses: actions/cache@v2 | ||
with: | ||
path: ios/Pods | ||
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-pods- | ||
- run: npm ci | ||
|
||
- run: npm run prepare-release:${{ matrix.platform }} -- app_env:next is_next_release:true | ||
|
||
- run: npm run build:${{ matrix.platform }} -- app_env:next is_release:true is_next_release:true | ||
|
||
- run: npm run release:${{ matrix.platform }} -- app_env:next is_next_release:true | ||
|
||
publish-sentry: | ||
runs-on: ubuntu-20.04 | ||
needs: [prepare, build-release] | ||
env: | ||
SENTRY_PROJECT: ${{ matrix.platform }}-app | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- platform: ios | ||
- platform: android | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: npm run prebuild:${{ matrix.platform }} -- --no-install | ||
- uses: ./.github/actions/cache-pods | ||
if: matrix.platform == 'ios' | ||
- uses: actions/setup-java@v4 | ||
if: matrix.platform == 'android' | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.GH_BOT_TOKEN }} | ||
|
||
- uses: getsentry/action-release@v1 | ||
with: | ||
environment: next | ||
version: ${{ env.SENTRY_PROJECT }}@${{ needs.prepare.outputs.release-version }} | ||
distribution: temurin | ||
java-version-file: .java-version | ||
cache: gradle | ||
- run: npm run prebuild:${{ matrix.platform }} | ||
- run: bundle exec ${{ matrix.platform }} prepare_release | ||
- run: npm run build:${{ matrix.platform }} -- --release | ||
- run: bundle exec ${{ matrix.platform }} release | ||
|
||
publish-github: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-latest | ||
needs: [prepare, build-release] | ||
steps: | ||
- name: Download workspace | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: release-workspace | ||
|
||
# .tar to preserve permissions - https://github.com/actions/upload-artifact#maintaining-file-permissions-and-case-sensitive-files | ||
- name: Extract tar workspace archive to preserve file permissions | ||
run: tar -xvf workspace.tar | ||
|
||
- uses: ./.github/actions/download-workspace | ||
- uses: shabados/actions/publish-github@release/v2 | ||
with: | ||
github_token: ${{ secrets.GH_BOT_TOKEN }} | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.