Skip to content

property-quantity-listings-generation #96

property-quantity-listings-generation

property-quantity-listings-generation #96

name: property-quantity-listings-generation
# Controls when the action will run.
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
generate-properties-listings:
runs-on: windows-latest
defaults:
run:
shell: pwsh
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Download the file
id: downloadfile
run: |
mkdir build
$urlPath = "https://thc.lyforms.com/documents/thc/public/IfcDocLite"
$path = "${{ github.workspace }}\build\IfcDocLite"
Invoke-WebRequest -URI $urlPath -OutFile $path
Expand-Archive $path -DestinationPath "${{ github.workspace }}\build\"
- name: Run property and quantity generation
run: |
echo 'Workspace directory is ${{ github.workspace }}'
& "${{ github.workspace }}\build\IfcDocLite.exe" "${{ github.workspace }}\IFC4x3" -FP
- name: Upload property listings
uses: actions/upload-artifact@v2
with:
name: IFC Properties and Quantities
path: ${{ github.workspace }}\properties