1
0
mirror of https://github.com/mastodon/mastodon-ios.git synced 2024-12-22 06:19:03 +01:00

chore: try tag the build

This commit is contained in:
CMK 2022-11-18 21:36:51 +08:00
parent 31699ea9fc
commit 356b8f2c00
2 changed files with 13 additions and 4 deletions

View File

@ -36,6 +36,8 @@ BUILD_NUMBER=$(app-store-connect get-latest-testflight-build-number $ENV_APP_ID
BUILD_NUMBER=$((BUILD_NUMBER+1))
CURRENT_PROJECT_VERSION=${BUILD_NUMBER:-0}
echo "GITHUB_TAG_NAME=build-$CURRENT_PROJECT_VERSION" >> $GITHUB_TAG_NAME
agvtool new-version -all $CURRENT_PROJECT_VERSION
xcrun xcodebuild clean \

View File

@ -12,16 +12,17 @@ jobs:
name: Build
runs-on: macOS-12
steps:
- name: checkout
- name: Checkout
uses: actions/checkout@v2
- name: setup
- name: Setup
env:
NotificationEndpointDebug: ${{ secrets.NotificationEndpointDebug }}
NotificationEndpointRelease: ${{ secrets.NotificationEndpointRelease }}
run: exec ./.github/scripts/setup.sh
- uses: actions/setup-python@v4
- name: Install codemagic-cli-tools
uses: actions/setup-python@v4
with:
python-version: '3.11'
- run: |
@ -44,7 +45,7 @@ jobs:
api-key-id: ${{ secrets.APPSTORE_KEY_ID }}
api-private-key: ${{ secrets.APPSTORE_PRIVATE_KEY }}
- name: build
- name: Build
env:
ENV_APP_ID: ${{ secrets.APP_ID }}
ENV_ISSUER_ID: ${{ secrets.APPSTORE_ISSUER_ID }}
@ -61,6 +62,12 @@ jobs:
api-key-id: ${{ secrets.APPSTORE_KEY_ID }}
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
if: ${{ always() }}
run: |