Release web assets #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Release web assets from the latest successful build action | |
name: Release web assets | |
env: | |
# Model source tag | |
SRC_TAG: 'PORTAL_RELEASE_20210718' | |
on: workflow_dispatch | |
jobs: | |
do-release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download artifact | |
uses: dawidd6/action-download-artifact@v6 | |
with: | |
workflow: build-models.yml | |
workflow_conclusion: success | |
branch: master | |
- name: Test | |
run: | | |
ls | |
mkdir geomodels | |
for i in `ls -d1 geomodels-*`; do mv $i/* geomodels; done | |
ls geomodels | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
tag_name: ${{env.SRC_TAG}} | |
name: Web asset release based on model sources tag ${{env.SRC_TAG}} | |
files: | | |
geomodels/* |