From 0d3138b36e30543225846629b846ff7aeb66669e Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sat, 25 Feb 2023 22:18:24 +0100 Subject: [PATCH] Update release workflow --- .github/workflows/release.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 353ade9c..0bdcc003 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,5 @@ name: Build and release to TestFlight and GitHub on: - push: - tags: - - 'v1.*' workflow_dispatch: env: @@ -53,6 +50,8 @@ jobs: runs-on: macos-latest steps: - uses: actions/checkout@v3 + with: + ref: main - uses: ruby/setup-ruby@v1 with: ruby-version: '3.0' @@ -75,6 +74,8 @@ jobs: runs-on: macos-latest steps: - uses: actions/checkout@v3 + with: + ref: main - uses: ruby/setup-ruby@v1 with: ruby-version: '3.0' @@ -105,6 +106,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + with: + ref: main - run: echo "BUILD_NUMBER=$(cat Yattee.xcodeproj/project.pbxproj | grep -m 1 CURRENT_PROJECT_VERSION | cut -d' ' -f3 | sed 's/;//g')" >> $GITHUB_ENV - run: echo "VERSION_NUMBER=$(cat Yattee.xcodeproj/project.pbxproj | grep -m 1 MARKETING_VERSION | cut -d' ' -f3 | sed 's/;//g')" >> $GITHUB_ENV - uses: actions/download-artifact@v3