Skip to content

Commit 9228492

Browse files
author
webdev778
committed
archive metadata.json
1 parent 12e634c commit 9228492

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.github/workflows/assets.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ name: release-assets
22

33
on:
44
push:
5-
branches: [ master, main ]
6-
tags: [ v* ]
7-
pull_request:
5+
tags:
6+
- 'v*'
87

98
jobs:
109
assets:
@@ -40,19 +39,27 @@ jobs:
4039
repo_token: ${{ secrets.GITHUB_TOKEN }}
4140
file: ruby/vis_json.zip
4241
file_glob: true
43-
tag: v2.1.0b5
42+
tag: ${{ github.ref }}
4443
overwrite: true
4544
body: "visualize json of map systems"
4645
- name: Generate metadata
4746
run: pushd ruby; bundle exec rake generate_metadata_json; popd
47+
- name: Archive metadata from the previous step
48+
uses: thedoctor0/zip-release@master
49+
with:
50+
filename: 'metadata.zip'
51+
path: ./metadata.json
52+
directory: ./ruby/
53+
exclusions: '*.git*'
54+
type: zip
4855
- name: Upload metadata
4956
id: upload_metadata
5057
uses: svenstaro/upload-release-action@2.2.1
5158
with:
5259
repo_token: ${{ secrets.GITHUB_TOKEN }}
53-
file: ruby/metadata.json
60+
file: ruby/metadata.zip
5461
asset_name: metadata.json
55-
tag: v2.1.0b5
62+
tag: ${{ github.ref }}
5663
overwrite: true
5764
body: "metadata of all systems"
5865
- name: Output link

0 commit comments

Comments
 (0)