mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-01 18:27:18 +00:00
Bumps the github-actions group with 16 updates: | Package | From | To | | --- | --- | --- | | [mhils/workflows/checkout](https://github.com/mhils/workflows) | `8fe88b311a66c441e01edfebe4cd90d8a47fa335` | `acc73c7af100db9fb3f1ad3c0178d382048e943f` | | [mhils/workflows/setup-uv](https://github.com/mhils/workflows) | `8fe88b311a66c441e01edfebe4cd90d8a47fa335` | `acc73c7af100db9fb3f1ad3c0178d382048e943f` | | [mhils/workflows/uv-sync](https://github.com/mhils/workflows) | `8fe88b311a66c441e01edfebe4cd90d8a47fa335` | `acc73c7af100db9fb3f1ad3c0178d382048e943f` | | [actions/setup-node](https://github.com/actions/setup-node) | `6.4.0` | `7.0.0` | | [codecov/codecov-action](https://github.com/codecov/codecov-action) | `6.0.1` | `7.0.0` | | [mhils/workflows/.github/workflows/python-build.yml](https://github.com/mhils/workflows) | `8fe88b311a66c441e01edfebe4cd90d8a47fa335` | `acc73c7af100db9fb3f1ad3c0178d382048e943f` | | [actions/cache](https://github.com/actions/cache) | `5.0.5` | `6.1.0` | | [mhils/workflows/.github/workflows/alls-green.yml](https://github.com/mhils/workflows) | `8fe88b311a66c441e01edfebe4cd90d8a47fa335` | `acc73c7af100db9fb3f1ad3c0178d382048e943f` | | [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) | `4.0.0` | `4.2.0` | | [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) | `4.0.0` | `4.2.0` | | [docker/login-action](https://github.com/docker/login-action) | `4.1.0` | `4.6.0` | | [docker/metadata-action](https://github.com/docker/metadata-action) | `6.0.0` | `6.2.0` | | [docker/build-push-action](https://github.com/docker/build-push-action) | `7.1.0` | `7.3.0` | | [actions/attest-build-provenance](https://github.com/actions/attest-build-provenance) | `4.1.0` | `4.2.2` | | [actions/checkout](https://github.com/actions/checkout) | `6.0.2` | `7.0.1` | | [mhils/workflows/setup-python](https://github.com/mhils/workflows) | `8fe88b311a66c441e01edfebe4cd90d8a47fa335` | `acc73c7af100db9fb3f1ad3c0178d382048e943f` | Updates `mhils/workflows/checkout` from 8fe88b311a66c441e01edfebe4cd90d8a47fa335 to acc73c7af100db9fb3f1ad3c0178d382048e943f - [Release notes](https://github.com/mhils/workflows/releases) - [Commits](8fe88b311a...acc73c7af1) Updates `mhils/workflows/setup-uv` from 8fe88b311a66c441e01edfebe4cd90d8a47fa335 to acc73c7af100db9fb3f1ad3c0178d382048e943f - [Release notes](https://github.com/mhils/workflows/releases) - [Commits](8fe88b311a...acc73c7af1) Updates `mhils/workflows/uv-sync` from 8fe88b311a66c441e01edfebe4cd90d8a47fa335 to acc73c7af100db9fb3f1ad3c0178d382048e943f - [Release notes](https://github.com/mhils/workflows/releases) - [Commits](8fe88b311a...acc73c7af1) Updates `actions/setup-node` from 6.4.0 to 7.0.0 - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](48b55a011b...8207627860) Updates `codecov/codecov-action` from 6.0.1 to 7.0.0 - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](e79a6962e0...fb8b3582c8) Updates `mhils/workflows/.github/workflows/python-build.yml` from 8fe88b311a66c441e01edfebe4cd90d8a47fa335 to acc73c7af100db9fb3f1ad3c0178d382048e943f - [Release notes](https://github.com/mhils/workflows/releases) - [Commits](8fe88b311a...acc73c7af1) Updates `actions/cache` from 5.0.5 to 6.1.0 - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](27d5ce7f10...55cc834586) Updates `mhils/workflows/.github/workflows/alls-green.yml` from 8fe88b311a66c441e01edfebe4cd90d8a47fa335 to acc73c7af100db9fb3f1ad3c0178d382048e943f - [Release notes](https://github.com/mhils/workflows/releases) - [Commits](8fe88b311a...acc73c7af1) Updates `docker/setup-qemu-action` from 4.0.0 to 4.2.0 - [Release notes](https://github.com/docker/setup-qemu-action/releases) - [Commits](ce360397dd...96fe6ef7f3) Updates `docker/setup-buildx-action` from 4.0.0 to 4.2.0 - [Release notes](https://github.com/docker/setup-buildx-action/releases) - [Commits](4d04d5d948...bb05f3f551) Updates `docker/login-action` from 4.1.0 to 4.6.0 - [Release notes](https://github.com/docker/login-action/releases) - [Commits](4907a6ddec...dbcb813823) Updates `docker/metadata-action` from 6.0.0 to 6.2.0 - [Release notes](https://github.com/docker/metadata-action/releases) - [Commits](030e881283...dc80280410) Updates `docker/build-push-action` from 7.1.0 to 7.3.0 - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](bcafcacb16...53b7df96c9) Updates `actions/attest-build-provenance` from 4.1.0 to 4.2.2 - [Release notes](https://github.com/actions/attest-build-provenance/releases) - [Changelog](https://github.com/actions/attest-build-provenance/blob/main/RELEASE.md) - [Commits](a2bbfa2537...4d101475d8) Updates `actions/checkout` from 6.0.2 to 7.0.1 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](de0fac2e45...3d3c42e5aa) Updates `mhils/workflows/setup-python` from 8fe88b311a66c441e01edfebe4cd90d8a47fa335 to acc73c7af100db9fb3f1ad3c0178d382048e943f - [Release notes](https://github.com/mhils/workflows/releases) - [Commits](8fe88b311a...acc73c7af1) --- updated-dependencies: - dependency-name: mhils/workflows/checkout dependency-version: acc73c7af100db9fb3f1ad3c0178d382048e943f dependency-type: direct:production dependency-group: github-actions - dependency-name: mhils/workflows/setup-uv dependency-version: acc73c7af100db9fb3f1ad3c0178d382048e943f dependency-type: direct:production dependency-group: github-actions - dependency-name: mhils/workflows/uv-sync dependency-version: acc73c7af100db9fb3f1ad3c0178d382048e943f dependency-type: direct:production dependency-group: github-actions - dependency-name: actions/setup-node dependency-version: 7.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: codecov/codecov-action dependency-version: 7.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: mhils/workflows/.github/workflows/python-build.yml dependency-version: acc73c7af100db9fb3f1ad3c0178d382048e943f dependency-type: direct:production dependency-group: github-actions - dependency-name: actions/cache dependency-version: 6.1.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: mhils/workflows/.github/workflows/alls-green.yml dependency-version: acc73c7af100db9fb3f1ad3c0178d382048e943f dependency-type: direct:production dependency-group: github-actions - dependency-name: docker/setup-qemu-action dependency-version: 4.2.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: docker/setup-buildx-action dependency-version: 4.2.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: docker/login-action dependency-version: 4.6.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: docker/metadata-action dependency-version: 6.2.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: docker/build-push-action dependency-version: 7.3.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: actions/attest-build-provenance dependency-version: 4.2.2 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: actions/checkout dependency-version: 7.0.1 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: mhils/workflows/setup-python dependency-version: acc73c7af100db9fb3f1ad3c0178d382048e943f dependency-type: direct:production dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
368 lines
14 KiB
YAML
368 lines
14 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- '**'
|
|
- '!dependabot/**'
|
|
- '!*-patch-*'
|
|
pull_request:
|
|
merge_group:
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
tox:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
env: [lint, filename_matching, mypy, individual_coverage, old-dependencies, test-offline]
|
|
name: ${{ matrix.env }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: mhils/workflows/checkout@acc73c7af100db9fb3f1ad3c0178d382048e943f
|
|
- uses: mhils/workflows/setup-uv@acc73c7af100db9fb3f1ad3c0178d382048e943f
|
|
- uses: mhils/workflows/uv-sync@acc73c7af100db9fb3f1ad3c0178d382048e943f
|
|
with:
|
|
args: --only-group tox
|
|
|
|
- run: tox -e ${{ matrix.env }}
|
|
|
|
test:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- os: ubuntu-latest
|
|
py: "3.14"
|
|
- os: windows-latest
|
|
py: "3.14"
|
|
- os: macos-latest
|
|
py: "3.14"
|
|
- os: ubuntu-latest
|
|
py: "3.13"
|
|
- os: ubuntu-latest
|
|
py: "3.12"
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: mhils/workflows/checkout@acc73c7af100db9fb3f1ad3c0178d382048e943f
|
|
- uses: mhils/workflows/setup-uv@acc73c7af100db9fb3f1ad3c0178d382048e943f
|
|
- uses: mhils/workflows/uv-sync@acc73c7af100db9fb3f1ad3c0178d382048e943f
|
|
with:
|
|
args: --only-group tox
|
|
|
|
- run: tox -e py${{ matrix.py }}
|
|
- uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v6
|
|
with:
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
files: ./coverage.xml
|
|
|
|
build:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- image: macos-15
|
|
platform: macos-arm64
|
|
- image: macos-15-intel
|
|
platform: macos-x86_64
|
|
- image: windows-2025
|
|
platform: windows
|
|
- image: ubuntu-latest
|
|
platform: linux-x86_64
|
|
container: debian@sha256:aeec37aebc55ca5cc6fcfb8d5f6ae2fd43d5017ad849e6e2fdb5325d61e144db # Old Debian 11 so we get oldest glibc possible.
|
|
- image: ubuntu-24.04-arm
|
|
platform: linux-arm64
|
|
container: debian@sha256:aeec37aebc55ca5cc6fcfb8d5f6ae2fd43d5017ad849e6e2fdb5325d61e144db # Old Debian 11 so we get oldest glibc possible.
|
|
runs-on: ${{ matrix.image }}
|
|
container:
|
|
image: ${{ matrix.container }}
|
|
steps:
|
|
- if: matrix.container
|
|
run: |
|
|
apt-get update
|
|
apt-get install --no-install-recommends -y git ca-certificates binutils build-essential
|
|
- uses: mhils/workflows/checkout@acc73c7af100db9fb3f1ad3c0178d382048e943f
|
|
- uses: mhils/workflows/setup-uv@acc73c7af100db9fb3f1ad3c0178d382048e943f
|
|
- uses: mhils/workflows/uv-sync@acc73c7af100db9fb3f1ad3c0178d382048e943f
|
|
- run: uv pip install . # pyinstaller 5.9 does not like pyproject.toml + editable installs.
|
|
|
|
- if: runner.os == 'macOS' && github.repository == 'mitmproxy/mitmproxy'
|
|
&& (startsWith(github.ref, 'refs/heads/') || startsWith(github.ref, 'refs/tags/'))
|
|
id: keychain
|
|
uses: apple-actions/import-codesign-certs@5142e029c445c10ffc7149d172e540235a065466
|
|
with:
|
|
keychain: ${{ runner.temp }}/temp
|
|
p12-file-base64: ${{ secrets.APPLE_CERTIFICATE }}
|
|
p12-password: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
|
|
- name: Build and notarize macOS app
|
|
if: runner.os == 'macOS' && github.repository == 'mitmproxy/mitmproxy'
|
|
&& (startsWith(github.ref, 'refs/heads/') || startsWith(github.ref, 'refs/tags/'))
|
|
run: |
|
|
python -u release/build.py macos-app \
|
|
--keychain "${{ runner.temp }}/temp.keychain" \
|
|
--team-id "S8XHQB96PW" \
|
|
--apple-id "${{ secrets.APPLE_ID }}" \
|
|
--password "${{ secrets.APPLE_APP_PASSWORD }}"
|
|
|
|
# Linux
|
|
- if: runner.os == 'Linux'
|
|
run: python -u release/build.py standalone-binaries
|
|
|
|
# Windows
|
|
- if: runner.os == 'Windows'
|
|
run: python -u release/build.py standalone-binaries
|
|
|
|
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
|
|
with:
|
|
name: binaries.${{ matrix.platform }}
|
|
path: release/dist
|
|
|
|
build-wheel:
|
|
uses: mhils/workflows/.github/workflows/python-build.yml@acc73c7af100db9fb3f1ad3c0178d382048e943f
|
|
with:
|
|
artifact: binaries.wheel
|
|
|
|
build-windows-installer:
|
|
runs-on: windows-latest
|
|
if: github.repository == 'mitmproxy/mitmproxy' && (
|
|
github.ref == 'refs/heads/main' ||
|
|
github.ref == 'refs/heads/citest' ||
|
|
startsWith(github.ref, 'refs/tags/')
|
|
)
|
|
steps:
|
|
- uses: mhils/workflows/checkout@acc73c7af100db9fb3f1ad3c0178d382048e943f
|
|
- uses: mhils/workflows/setup-uv@acc73c7af100db9fb3f1ad3c0178d382048e943f
|
|
- uses: mhils/workflows/uv-sync@acc73c7af100db9fb3f1ad3c0178d382048e943f
|
|
- run: uv pip install . # pyinstaller 5.9 does not like pyproject.toml + editable installs.
|
|
- run: python -u release/build.py installbuilder-installer msix-installer
|
|
env:
|
|
CI_BUILD_KEY: ${{ secrets.CI_BUILD_KEY }}
|
|
|
|
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
|
|
with:
|
|
name: binaries.windows-installer
|
|
path: release/dist
|
|
|
|
test-web-ui:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: mhils/workflows/checkout@acc73c7af100db9fb3f1ad3c0178d382048e943f
|
|
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
|
with:
|
|
node-version-file: .github/node-version.txt
|
|
- name: Cache Node.js modules
|
|
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
|
with:
|
|
# npm cache files are stored in `~/.npm` on Linux/macOS
|
|
path: ~/.npm
|
|
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
|
|
restore-keys: |
|
|
${{ runner.OS }}-node-
|
|
${{ runner.OS }}-
|
|
- working-directory: ./web
|
|
run: npm ci
|
|
- working-directory: ./web
|
|
run: npm test
|
|
- uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v6
|
|
with:
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
files: ./web/coverage/coverage-final.json
|
|
|
|
test-docker:
|
|
runs-on: ubuntu-latest
|
|
needs: build-wheel
|
|
steps:
|
|
- uses: mhils/workflows/checkout@acc73c7af100db9fb3f1ad3c0178d382048e943f
|
|
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
|
|
with:
|
|
name: binaries.wheel
|
|
path: release/docker
|
|
- name: Build container
|
|
run: docker build --tag localtesting release/docker
|
|
- name: Test container
|
|
run: docker run --rm -v $PWD/release:/release localtesting mitmdump -s /release/selftest.py
|
|
|
|
docs:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: mhils/workflows/checkout@acc73c7af100db9fb3f1ad3c0178d382048e943f
|
|
- uses: mhils/workflows/setup-uv@acc73c7af100db9fb3f1ad3c0178d382048e943f
|
|
- uses: mhils/workflows/uv-sync@acc73c7af100db9fb3f1ad3c0178d382048e943f
|
|
- run: |
|
|
wget -q https://github.com/gohugoio/hugo/releases/download/v0.139.3/hugo_extended_0.139.3_linux-amd64.deb
|
|
echo "3e58800d1fee57269208d07d104ae1a6ab886615344099f2dca0c6ad5279bc11 hugo_extended_0.139.3_linux-amd64.deb" | sha256sum -c
|
|
sudo dpkg -i hugo*.deb
|
|
|
|
- run: ./docs/build.py
|
|
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
|
|
with:
|
|
name: docs
|
|
path: docs/public
|
|
# For releases, also build the archive version of the docs.
|
|
- run: ./docs/build.py
|
|
env:
|
|
DOCS_ARCHIVE: ${{ github.ref_name }}
|
|
- if: startsWith(github.ref, 'refs/tags/')
|
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
|
|
with:
|
|
name: docs-archive
|
|
path: docs/public
|
|
|
|
check:
|
|
if: always()
|
|
needs:
|
|
- tox
|
|
- test
|
|
- test-docker
|
|
- test-web-ui
|
|
- build
|
|
- build-wheel
|
|
- build-windows-installer
|
|
- docs
|
|
uses: mhils/workflows/.github/workflows/alls-green.yml@acc73c7af100db9fb3f1ad3c0178d382048e943f
|
|
with:
|
|
jobs: ${{ toJSON(needs) }}
|
|
allowed-skips: build-windows-installer
|
|
|
|
# Separate from everything else because slow.
|
|
deploy-docker:
|
|
if: github.repository == 'mitmproxy/mitmproxy' && (
|
|
github.ref == 'refs/heads/main' ||
|
|
github.ref == 'refs/heads/citest' ||
|
|
startsWith(github.ref, 'refs/tags/')
|
|
)
|
|
permissions:
|
|
id-token: write
|
|
attestations: write
|
|
packages: write
|
|
environment: deploy-docker
|
|
needs: check
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: mhils/workflows/checkout@acc73c7af100db9fb3f1ad3c0178d382048e943f
|
|
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
|
|
with:
|
|
name: binaries.wheel
|
|
path: release/docker
|
|
- uses: docker/setup-qemu-action@96fe6ef7f33517b61c61be40b68a1882f3264fb8 # v4.2.0
|
|
- uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v1.6.0
|
|
with:
|
|
cache-binary: false
|
|
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
|
|
with:
|
|
username: mitmbot
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
- name: Login to GitHub Container Registry
|
|
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.repository_owner }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Docker meta
|
|
id: meta
|
|
uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302
|
|
env:
|
|
DOCKER_METADATA_ANNOTATIONS_LEVELS: index
|
|
with:
|
|
images: |
|
|
mitmproxy/mitmproxy
|
|
ghcr.io/mitmproxy/mitmproxy
|
|
tags: |
|
|
type=semver,pattern={{version}}
|
|
type=semver,pattern={{major}}.{{minor}}
|
|
type=semver,pattern={{major}}
|
|
type=raw,value=dev,enable=${{ github.ref == 'refs/heads/main' }}
|
|
type=raw,value=citest,enable=${{ github.ref == 'refs/heads/citest' }}
|
|
|
|
- name: Build and push
|
|
id: push
|
|
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
|
|
with:
|
|
context: release/docker
|
|
platforms: linux/amd64,linux/arm64
|
|
push: true
|
|
provenance: false
|
|
tags: ${{ steps.meta.outputs.tags }}
|
|
labels: ${{ steps.meta.outputs.labels }}
|
|
annotations: ${{ steps.meta.outputs.annotations }}
|
|
- uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4
|
|
with:
|
|
subject-name: ghcr.io/${{ github.repository }}
|
|
subject-digest: ${{ steps.push.outputs.digest }}
|
|
|
|
deploy:
|
|
# This action has access to our AWS keys, so we are extra careful here.
|
|
# In particular, we don't blindly `pip install` anything to minimize the risk of supply chain attacks.
|
|
if: github.repository == 'mitmproxy/mitmproxy' && (startsWith(github.ref, 'refs/heads/') || startsWith(github.ref, 'refs/tags/'))
|
|
environment: ${{ (github.ref == 'refs/heads/citest' || startsWith(github.ref, 'refs/tags/')) && 'deploy-release' || 'deploy-snapshot' }}
|
|
needs: check
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
id-token: write
|
|
attestations: write
|
|
env:
|
|
# PyPI and MSFT keys are only available for the deploy-release environment
|
|
# The AWS access key for snapshots is scoped to branches/* as well.
|
|
TWINE_USERNAME: __token__
|
|
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
|
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
AWS_DEFAULT_REGION: us-west-2
|
|
MSFT_APP_ID: 9NWNDLQMNZD7
|
|
MSFT_TENANT_ID: ${{ secrets.MSFT_TENANT_ID }}
|
|
MSFT_CLIENT_ID: ${{ secrets.MSFT_CLIENT_ID }}
|
|
MSFT_CLIENT_SECRET: ${{ secrets.MSFT_CLIENT_SECRET }}
|
|
R2_ACCOUNT_ID: ${{ secrets.R2_ACCOUNT_ID }}
|
|
R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
|
|
R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}
|
|
steps:
|
|
- uses: mhils/workflows/checkout@acc73c7af100db9fb3f1ad3c0178d382048e943f
|
|
- uses: mhils/workflows/setup-uv@acc73c7af100db9fb3f1ad3c0178d382048e943f
|
|
- uses: mhils/workflows/uv-sync@acc73c7af100db9fb3f1ad3c0178d382048e943f
|
|
with:
|
|
args: --only-group deploy
|
|
|
|
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
|
|
with:
|
|
name: docs
|
|
path: docs/public
|
|
- if: startsWith(github.ref, 'refs/tags/')
|
|
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
|
|
with:
|
|
name: docs-archive
|
|
path: docs/archive
|
|
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
|
|
with:
|
|
pattern: binaries.*
|
|
merge-multiple: true
|
|
path: release/dist
|
|
- id: provenance
|
|
uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4
|
|
with:
|
|
subject-path: 'release/dist/*'
|
|
- run: |
|
|
REF=${{ github.ref_name }}
|
|
mv ${{ steps.provenance.outputs.bundle-path }} release/dist/mitmproxy-${REF#v}.sigstore
|
|
- run: ls docs/public
|
|
- run: ls release/dist
|
|
|
|
- run: ./release/deploy.py
|
|
|
|
- name: Deploy to Microsoft Store (test flight)
|
|
if: github.ref == 'refs/heads/citest'
|
|
run: ./release/deploy-microsoft-store.py release/dist/*.msix
|
|
env:
|
|
MSFT_APP_FLIGHT: 174ca570-8cae-4444-9858-c07293f1f13a
|
|
- name: Deploy to Microsoft Store
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
run: ./release/deploy-microsoft-store.py release/dist/*.msix
|