Skip to content

Release web assets

Release web assets #6

Workflow file for this run

# Release web assets from the latest successful build action into a certain release
name: Release web assets
on:
workflow_dispatch:
inputs:
rel_tag:
description: Files are inserted into the release with this tag
type: string
required: false
default: PORTAL_RELEASE_20210718
jobs:
do-release:
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: dawidd6/action-download-artifact@v6
with:
workflow: build-models.yml
workflow_conclusion: success
branch: master
- name: Bundle artifacts together
run: |
mkdir geomodels
for i in `ls -d1 geomodels-*`; do mv $i/* geomodels; done
tar cvfz ${{inputs.rel_tag}}-geomodels_web_assets.tar.gz ./geomodels
- name: Add to release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{inputs.rel_tag}}
name: Source and web asset release based on tag ${{inputs.rel_tag}}
files: |
${{inputs.rel_tag}}-geomodels_web_assets.tar.gz