feat: add tag for shared content #7
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
name: Build IPA | |
# not working without xcode p12 file | |
# on: | |
# workflow_dispatch: | |
# push: | |
# tags: | |
# - 'ipa-v*.*.*' | |
# - 'v*.*.*' | |
# paths-ignore: | |
# - 'README.md' | |
# - 'wiki/**' | |
# - 'public/**' | |
# - 'scripts/**' | |
# - '.vscode' | |
# - '.idea' | |
# pull_request: | |
# branches: | |
# - master | |
# - main | |
# paths-ignore: | |
# - 'README.md' | |
# - 'wiki/**' | |
# - 'public/**' | |
# - '.scripts/**' | |
# - '.vscode' | |
# - '.idea' | |
jobs: | |
build: | |
name: Install and build | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 9 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 22.x | |
cache: pnpm | |
- name: Get pnpm store directory | |
shell: bash | |
run: | | |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | |
- uses: actions/cache@v3 | |
name: Setup pnpm cache | |
with: | |
path: ${{ env.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: Install dependencies | |
run: pnpm install | |
- name: Build tw plugins & scripts | |
run: | | |
cd plugins && pnpm i && cd .. | |
pnpm run build:plugin | |
pnpm run build:preload | |
- name: Build by eject eas | |
run: | | |
pnpm exec expo prebuild -p ios --clean | |
npx pod-install | |
- name: Create Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
draft: true | |
generate_release_notes: true | |
files: app.ipa | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |