mirror of
https://github.com/mastodon/mastodon-ios.git
synced 2024-12-22 06:19:03 +01:00
Merge pull request #631 from mastodon/ci-test
Tag the build number automatically
This commit is contained in:
commit
8335d5a6c6
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))
|
||||
CURRENT_PROJECT_VERSION=${BUILD_NUMBER:-0}
|
||||
|
||||
echo "GITHUB_TAG_NAME=build-$CURRENT_PROJECT_VERSION" >> $GITHUB_ENV
|
||||
|
||||
agvtool new-version -all $CURRENT_PROJECT_VERSION
|
||||
|
||||
xcrun xcodebuild clean \
|
||||
|
15
.github/workflows/develop-build.yml
vendored
15
.github/workflows/develop-build.yml
vendored
@ -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: |
|
||||
|
Loading…
Reference in New Issue
Block a user