mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-05 23:41:44 +00:00
fc97ccb6dc
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v6...v7)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: '7'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
(cherry picked from commit 62f627ecc6)
47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
name: Release Pyodide WASM Wheel
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-and-push:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout IfcOpenShell
|
|
uses: actions/checkout@v7
|
|
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v7
|
|
|
|
- name: Build wheel
|
|
working-directory: pyodide
|
|
run: uv run pack_wheel.py --build
|
|
|
|
- name: Find wheel
|
|
id: wheel
|
|
run: |
|
|
WHEEL=$(ls pyodide/dist/ifcopenshell-*.whl)
|
|
echo "path=$WHEEL" >> $GITHUB_OUTPUT
|
|
echo "name=$(basename $WHEEL)" >> $GITHUB_OUTPUT
|
|
|
|
- name: Checkout wasm-wheels
|
|
uses: actions/checkout@v7
|
|
with:
|
|
repository: IfcOpenShell/wasm-wheels
|
|
path: wasm-wheels
|
|
token: ${{ secrets.BUILD_REPO_TOKEN }}
|
|
|
|
- name: Commit and push wheel to wasm-wheels
|
|
run: |
|
|
WHEEL_NAME="${{ steps.wheel.outputs.name }}"
|
|
cp "${{ steps.wheel.outputs.path }}" "wasm-wheels/$WHEEL_NAME"
|
|
cd wasm-wheels
|
|
git config user.name "IfcOpenBot"
|
|
git config user.email "ifcopenbot@ifcopenshell.org"
|
|
git add "$WHEEL_NAME"
|
|
git commit -m "Add $WHEEL_NAME"
|
|
VERSION=$(cat ../VERSION)
|
|
git tag "v${VERSION}"
|
|
git push origin main
|
|
git push origin "v${VERSION}"
|