Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions .github/workflows/assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
tags:
- 'v*'
workflow_dispatch:
inputs:
tag:
description: 'Release tag to attach the assets to (defaults to the dispatching ref)'
required: false
type: string

jobs:
assets:
Expand Down Expand Up @@ -37,7 +42,7 @@ jobs:
run: bundle exec rake generate_visualization_json

- name: Archive visualization JSON
uses: thedoctor0/zip-release@v0.7.6
uses: thedoctor0/zip-release@0.7.6
with:
filename: 'vis_json.zip'
path: ./vis_json/*.json
Expand All @@ -52,15 +57,15 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ruby/vis_json.zip
file_glob: true
tag: ${{ github.ref }}
tag: ${{ inputs.tag || github.ref }}
overwrite: true

- name: Generate metadata
working-directory: ruby
run: bundle exec rake generate_metadata_json

- name: Archive metadata
uses: thedoctor0/zip-release@v0.7.6
uses: thedoctor0/zip-release@0.7.6
with:
filename: 'metadata.zip'
path: ./metadata.json
Expand All @@ -75,7 +80,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ruby/metadata.zip
asset_name: metadata.json.zip
tag: ${{ github.ref }}
tag: ${{ inputs.tag || github.ref }}
overwrite: true

- name: Output links
Expand Down
Loading