Skip to content

Commit

Permalink
Add model source tag to build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vjf authored Jul 25, 2024
1 parent aebd753 commit 3906574
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/build-models.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
# This workflow builds model web assets from a model sources
# with an option to build a release using current master
# TODO: Paramterize model source tag ${{env.SRC_TAG}}

name: Build Models
env:
# Model source tag
SRC_TAG: 'PORTAL_RELEASE_20210718'

on:
on:
workflow_dispatch:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
inputs:
tags:
description: 'Optional release tag'
required: false
type: boolean

permissions:
contents: read
Expand Down Expand Up @@ -121,7 +120,7 @@ jobs:
run: |
mkdir MODEL_SRC
pushd MODEL_SRC
wget https://github.com/AuScope/geomodel-2-3dweb/releases/download/PORTAL_RELEASE_20210718/${{matrix.src_name}}.tar.gz
wget https://github.com/AuScope/geomodel-2-3dweb/releases/download/${{env.SRC_TAG}}/${{matrix.src_name}}.tar.gz
tar xvfz ${{matrix.src_name}}.tar.gz
popd
- name: Install pdm
Expand Down Expand Up @@ -151,5 +150,7 @@ jobs:
uses: softprops/action-gh-release@v2
if: ${{ github.event_name == 'workflow_dispatch' }}
with:
tag_name: ${{env.SRC_TAG}}
name: Web asset release based on model sources tag ${{env.SRC_TAG}}
files:
web_build/geomodels_web_assets.tar.gz
web_build/${{env.SRC_TAG}}_web_assets.tar.gz

0 comments on commit 3906574

Please sign in to comment.