Skip to content

Commit

Permalink
Merge pull request #33 from rmartin16/ci
Browse files Browse the repository at this point in the history
Upgrade `upload-artifact` and `download-artifact` actions to v4
  • Loading branch information
freakboy3742 authored Jan 5, 2024
2 parents a87200b + efeb639 commit 4836061
Showing 1 changed file with 28 additions and 24 deletions.
52 changes: 28 additions & 24 deletions .github/workflows/update-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
runs-on: macos-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
steps:
- name: Set build variables
- name: Set Build Variables
env:
TAG_NAME: ${{ github.ref }}
run: |
Expand All @@ -21,22 +21,20 @@ jobs:
export BRIEFCASE_VERSION="${TAG%-*}"
export BUILD_NUMBER="${TAG#*-}"
echo "TAG=${TAG}"
echo "PYTHON_TAG=${PYTHON_TAG}"
echo "BRIEFCASE_VERSION=${BRIEFCASE_VERSION}"
echo "BUILD_NUMBER=${BUILD_NUMBER}"
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
echo "TAG=${TAG}" >> $GITHUB_ENV
echo "PYTHON_TAG=${PYTHON_TAG}" >> $GITHUB_ENV
echo "BRIEFCASE_VERSION=${BRIEFCASE_VERSION}" >> $GITHUB_ENV
echo "BUILD_NUMBER=${BUILD_NUMBER}" >> $GITHUB_ENV
- name: Checkout template
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
- name: Checkout Template
uses: actions/[email protected]

- name: Setup Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies

- name: Install Dependencies
run: |
python -m pip install --upgrade pip
if [ "${{ env.BRIEFCASE_VERSION }}" == "dev" ]; then
Expand All @@ -45,7 +43,8 @@ jobs:
else
python -m pip install briefcase==${{ env.BRIEFCASE_VERSION }}
fi
- name: Generate Xcode app template
- name: Generate Xcode App Template
run: |
# Generate the stub app
cd stub
Expand All @@ -56,18 +55,19 @@ jobs:
codesign --remove-signature ./build/stub/macos/xcode/build/Release/Stub.app/Contents/MacOS/Stub
echo "Move the binary into the final location"
mv ./build/stub/macos/xcode/build/Release/Stub.app/Contents/MacOS/Stub Stub-${{ env.PYTHON_TAG }}
- name: Upload Stub artefact
uses: actions/upload-artifact@v3
- name: Upload Stub Artefact
uses: actions/[email protected]
with:
name: stubs
name: stub-${{ matrix.python-version }}
path: stub/Stub-${{ env.PYTHON_TAG }}

commit-stubs:
name: Commit stub binaries
needs: build-stubs
runs-on: macos-latest
steps:
- name: Set build variables
- name: Set Build Variables
env:
TAG_NAME: ${{ github.ref }}
run: |
Expand All @@ -93,13 +93,17 @@ jobs:
echo "TEMPLATE_BRANCH=v${BRIEFCASE_VERSION}"
echo "TEMPLATE_BRANCH=v${BRIEFCASE_VERSION}" >> $GITHUB_ENV
fi
- name: Checkout template
uses: actions/checkout@v4
- name: Download Stub artefacts
uses: actions/download-artifact@v3
- name: Checkout Template
uses: actions/[email protected]

- name: Download Stub Artefacts
uses: actions/[email protected]
with:
name: stubs
pattern: stub-*
path: stub
merge-multiple: true

- name: Commit stubs
run: |
git config user.email "[email protected]"
Expand Down

0 comments on commit 4836061

Please sign in to comment.