Skip to content

Commit

Permalink
Simplify stub binary update workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed Jun 12, 2024
1 parent 130e4bb commit 0d58201
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/update-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Update binary
on:
push:
tags:
- '*-b*'
- 'b*'

jobs:
build-stubs:
Expand All @@ -16,14 +16,10 @@ jobs:
env:
TAG_NAME: ${{ github.ref }}
run: |
export TAG=$(basename $TAG_NAME)
export BUILD_NUMBER=$(basename $TAG_NAME)
export PYTHON_TAG=$(python -c "print('.'.join('${{ matrix.python-version }}'.split('.')[:2]))")
export BRIEFCASE_VERSION="${TAG%-*}"
export BUILD_NUMBER="${TAG#*-}"
echo "TAG=${TAG}" | tee -a $GITHUB_ENV
echo "PYTHON_TAG=${PYTHON_TAG}" | tee -a $GITHUB_ENV
echo "BRIEFCASE_VERSION=${BRIEFCASE_VERSION}" | tee -a $GITHUB_ENV
echo "BUILD_NUMBER=${BUILD_NUMBER}" | tee -a $GITHUB_ENV
- name: Checkout Template
Expand All @@ -37,12 +33,7 @@ jobs:
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
if [ "${{ env.BRIEFCASE_VERSION }}" == "dev" ]; then
# We're on the development template; use development Briefcase
python -m pip install git+https://github.com/beeware/briefcase.git
else
python -m pip install briefcase==${{ env.BRIEFCASE_VERSION }}
fi
python -m pip install git+https://github.com/beeware/briefcase.git
- name: Generate Xcode App Template
run: |
Expand Down

0 comments on commit 0d58201

Please sign in to comment.