Skip to content

3.13-b15

3.13-b15 #123

Workflow file for this run

name: Publish support package
on:
release:
types: published
permissions:
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Set up Python environment
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.X"
- name: Set build variables
id: build-vars
env:
TAG_NAME: ${{ github.ref }}
run: |
TAG=$(basename $TAG_NAME)
PYTHON_VER="${TAG%-*}"
BUILD_NUMBER="${TAG#*-}"
echo "TAG=${TAG}" | tee -a ${GITHUB_OUTPUT}
echo "PYTHON_VER=${PYTHON_VER}" | tee -a ${GITHUB_OUTPUT}
echo "BUILD_NUMBER=${BUILD_NUMBER}" | tee -a ${GITHUB_OUTPUT}
- name: Update Release Asset to S3
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
TAG: ${{ steps.build-vars.outputs.TAG }}
PYTHON_VER: ${{ steps.build-vars.outputs.PYTHON_VER }}
BUILD_NUMBER: ${{ steps.build-vars.outputs.BUILD_NUMBER }}
run: |
python -m pip install -U pip
python -m pip install -U setuptools
python -m pip install awscli
# macOS build
curl -o macOS-artefact.tar.gz -L https://github.com/beeware/Python-Apple-support/releases/download/${TAG}/Python-${PYTHON_VER}-macOS-support.${BUILD_NUMBER}.tar.gz
aws s3 cp macOS-artefact.tar.gz s3://briefcase-support/python/${PYTHON_VER}/macOS/Python-${PYTHON_VER}-macOS-support.${BUILD_NUMBER}.tar.gz
# iOS build
curl -o iOS-artefact.tar.gz -L https://github.com/beeware/Python-Apple-support/releases/download/${TAG}/Python-${PYTHON_VER}-iOS-support.${BUILD_NUMBER}.tar.gz
aws s3 cp iOS-artefact.tar.gz s3://briefcase-support/python/${PYTHON_VER}/iOS/Python-${PYTHON_VER}-iOS-support.${BUILD_NUMBER}.tar.gz
# tvOS build
curl -o tvOS-artefact.tar.gz -L https://github.com/beeware/Python-Apple-support/releases/download/${TAG}/Python-${PYTHON_VER}-tvOS-support.${BUILD_NUMBER}.tar.gz
aws s3 cp tvOS-artefact.tar.gz s3://briefcase-support/python/${PYTHON_VER}/tvOS/Python-${PYTHON_VER}-tvOS-support.${BUILD_NUMBER}.tar.gz
# watchOS build
curl -o watchOS-artefact.tar.gz -L https://github.com/beeware/Python-Apple-support/releases/download/${TAG}/Python-${PYTHON_VER}-watchOS-support.${BUILD_NUMBER}.tar.gz
aws s3 cp watchOS-artefact.tar.gz s3://briefcase-support/python/${PYTHON_VER}/watchOS/Python-${PYTHON_VER}-watchOS-support.${BUILD_NUMBER}.tar.gz
# visionOS build
curl -o visionOS-artefact.tar.gz -L https://github.com/beeware/Python-Apple-support/releases/download/${TAG}/Python-${PYTHON_VER}-visionOS-support.${BUILD_NUMBER}.tar.gz
aws s3 cp visionOS-artefact.tar.gz s3://briefcase-support/python/${PYTHON_VER}/visionOS/Python-${PYTHON_VER}-visionOS-support.${BUILD_NUMBER}.tar.gz