Release web assets #7
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 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: | | |
ls | |
echo "---" | |
ls -lR | |
#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 |