mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 10:33:20 +00:00
58 lines
1.8 KiB
YAML
58 lines
1.8 KiB
YAML
name: Publish-blenderbim-chocolatey package
|
|
|
|
on:
|
|
schedule:
|
|
# ┌───────────── minute (0 - 59)
|
|
# │ ┌───────────── hour (0 - 23)
|
|
# │ │ ┌───────────── day of the month (1 - 31)
|
|
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
|
|
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
|
|
# * * * * *
|
|
- cron: "30 0 * * *" # 30min past utc midnight
|
|
|
|
env:
|
|
major: 0
|
|
minor: 0
|
|
name: blenderbim
|
|
choco_version: 1.1.0
|
|
CHOCO_TOKEN: ${{ secrets.CHOCO_TOKEN }}
|
|
|
|
jobs:
|
|
activate:
|
|
runs-on: ubuntu-latest
|
|
if: |
|
|
github.repository == 'IfcOpenShell/IfcOpenShell'
|
|
steps:
|
|
- name: Set env
|
|
run: echo ok go
|
|
|
|
build:
|
|
needs: activate
|
|
name: ${{ matrix.config.name }}-${{ matrix.pyver }}
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
pyver: [py312]
|
|
config:
|
|
- {
|
|
name: "Windows Build",
|
|
short_name: win,
|
|
}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-tags: true
|
|
fetch-depth: 0
|
|
- uses: actions/setup-python@v5 # https://github.com/actions/setup-python
|
|
with:
|
|
python-version: '3.12.4' # Version range or exact version of a Python version to use, using SemVer's version range syntax
|
|
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
|
|
- run: echo ${{ env.DATE }}
|
|
|
|
- name: Check in release tags if we should do a choco release and perform release if needed
|
|
id: do_choco_release
|
|
run: |
|
|
cd /home/runner/work/IfcOpenShell/IfcOpenShell/choco/blenderbim/ &&
|
|
python3 choco_release.py
|