chore: try tag the build
This commit is contained in:
parent
31699ea9fc
commit
356b8f2c00
2
.github/scripts/build-release.sh
vendored
2
.github/scripts/build-release.sh
vendored
@ -36,6 +36,8 @@ BUILD_NUMBER=$(app-store-connect get-latest-testflight-build-number $ENV_APP_ID
|
|||||||
BUILD_NUMBER=$((BUILD_NUMBER+1))
|
BUILD_NUMBER=$((BUILD_NUMBER+1))
|
||||||
CURRENT_PROJECT_VERSION=${BUILD_NUMBER:-0}
|
CURRENT_PROJECT_VERSION=${BUILD_NUMBER:-0}
|
||||||
|
|
||||||
|
echo "GITHUB_TAG_NAME=build-$CURRENT_PROJECT_VERSION" >> $GITHUB_TAG_NAME
|
||||||
|
|
||||||
agvtool new-version -all $CURRENT_PROJECT_VERSION
|
agvtool new-version -all $CURRENT_PROJECT_VERSION
|
||||||
|
|
||||||
xcrun xcodebuild clean \
|
xcrun xcodebuild clean \
|
||||||
|
15
.github/workflows/develop-build.yml
vendored
15
.github/workflows/develop-build.yml
vendored
@ -12,16 +12,17 @@ jobs:
|
|||||||
name: Build
|
name: Build
|
||||||
runs-on: macOS-12
|
runs-on: macOS-12
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: setup
|
- name: Setup
|
||||||
env:
|
env:
|
||||||
NotificationEndpointDebug: ${{ secrets.NotificationEndpointDebug }}
|
NotificationEndpointDebug: ${{ secrets.NotificationEndpointDebug }}
|
||||||
NotificationEndpointRelease: ${{ secrets.NotificationEndpointRelease }}
|
NotificationEndpointRelease: ${{ secrets.NotificationEndpointRelease }}
|
||||||
run: exec ./.github/scripts/setup.sh
|
run: exec ./.github/scripts/setup.sh
|
||||||
|
|
||||||
- uses: actions/setup-python@v4
|
- name: Install codemagic-cli-tools
|
||||||
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
- run: |
|
- run: |
|
||||||
@ -44,7 +45,7 @@ jobs:
|
|||||||
api-key-id: ${{ secrets.APPSTORE_KEY_ID }}
|
api-key-id: ${{ secrets.APPSTORE_KEY_ID }}
|
||||||
api-private-key: ${{ secrets.APPSTORE_PRIVATE_KEY }}
|
api-private-key: ${{ secrets.APPSTORE_PRIVATE_KEY }}
|
||||||
|
|
||||||
- name: build
|
- name: Build
|
||||||
env:
|
env:
|
||||||
ENV_APP_ID: ${{ secrets.APP_ID }}
|
ENV_APP_ID: ${{ secrets.APP_ID }}
|
||||||
ENV_ISSUER_ID: ${{ secrets.APPSTORE_ISSUER_ID }}
|
ENV_ISSUER_ID: ${{ secrets.APPSTORE_ISSUER_ID }}
|
||||||
@ -61,6 +62,12 @@ jobs:
|
|||||||
api-key-id: ${{ secrets.APPSTORE_KEY_ID }}
|
api-key-id: ${{ secrets.APPSTORE_KEY_ID }}
|
||||||
api-private-key: ${{ secrets.APPSTORE_PRIVATE_KEY }}
|
api-private-key: ${{ secrets.APPSTORE_PRIVATE_KEY }}
|
||||||
|
|
||||||
|
- name: Tag commit
|
||||||
|
uses: tvdias/github-tagger@v0.0.1
|
||||||
|
with:
|
||||||
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
tag: "${{ env.GITHUB_TAG_NAME }}"
|
||||||
|
|
||||||
- name: Clean up keychain and provisioning profile
|
- name: Clean up keychain and provisioning profile
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user