From 3709f2082bb453779c09097cdb5d3856e9355781 Mon Sep 17 00:00:00 2001 From: Paul Schmiedmayer Date: Thu, 9 Jan 2025 23:09:38 -0800 Subject: [PATCH] Setup --- .github/workflows/deployment.yml | 16 ++++++++-------- .github/workflows/release.yml | 7 ++----- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index c6334c1d..0dbff3e6 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -107,16 +107,16 @@ jobs: echo "version: ${{ inputs.version }}" fi echo "releasenotes: ${{ inputs.releasenotes }}" - # buildandtest: - # name: Build and Test - # needs: determineenvironment - # uses: ./.github/workflows/build-and-test.yml - # permissions: - # contents: read - # secrets: inherit + buildandtest: + name: Build and Test + needs: determineenvironment + uses: ./.github/workflows/build-and-test.yml + permissions: + contents: read + secrets: inherit iosapptestflightdeployment: name: iOS App TestFlight Deployment - needs: [determineenvironment, vars] # buildandtest + needs: [determineenvironment, vars, buildandtest] uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2 permissions: contents: read diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 62e2b93b..c84d0182 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,9 +11,6 @@ name: Release on: release: types: [published] - push: - branches: - - fixReleaseNotes concurrency: group: production @@ -41,8 +38,8 @@ jobs: import requests # Fetch release notes from the GitHub API - RELEASE_TAG = "2.0.1" - REPO = "StanfordBDHG/ENGAGE-HF-iOS" + RELEASE_TAG = "${{ github.event.release.tag_name }}" + REPO = "${{ github.repository }}" URL = f"https://api.github.com/repos/{REPO}/releases/tags/{RELEASE_TAG}" response = requests.get(URL) release = response.json()