Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Cross-build environment for pyodide-build
name: Build

on:
pull_request:
Expand Down Expand Up @@ -26,7 +26,7 @@ jobs:
build:
permissions:
contents: read
name: Build cross-build environment for Pyodide
name: Build xbuildenv
uses: ./.github/workflows/build-xbuildenv.yml
with:
branch: ${{ github.event.inputs.branch || 'main' }}
Expand Down
52 changes: 52 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Deploy nightly environments metadata to GitHub Pages

on:
push:
branches:
- main
paths:
- "nightly-cross-build-environments.json"
workflow_dispatch:

permissions: {}

concurrency:
group: pages
cancel-in-progress: false

jobs:
build:
name: Build GitHub Pages artifacts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0

# We don't actually have a v1 API here, just that we do it to be in line with the
# non-nightly metadata in the pyodide/pyodide GitHub Pages job/site
- name: Prepare GitHub Pages content
run: |
mkdir -p _site/api/v2
cp nightly-cross-build-environments.json _site/api/v2

- uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
with:
path: _site

deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
needs: [build]
permissions:
pages: write # Required to deploy to GitHub Pages
id-token: write # Required for OIDC token used by the deploy-pages action
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}/api/v2/nightly-cross-build-environments.json
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
24 changes: 24 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,27 @@ jobs:
tag_name: ${{ steps.release_version.outputs.release_version }}
fail_on_unmatched_files: true
name: ${{ steps.release_version.outputs.release_version }}

- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with:
enable-cache: false

- name: Update cross-build environments metadata
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ steps.release_version.outputs.release_version }}
run: uv run tools/update_nightly_cross_build_releases.py "$VERSION"

- name: Commit and push metadata updates
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ steps.release_version.outputs.release_version }}
run: |
gh auth setup-git

git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"

git add nightly-cross-build-environments.json
git commit -m "Scheduled update for nightly ${VERSION} xbuildenvs metadata [skip ci]"
git push origin main
Loading
Loading