Skip to content

Commit fed5bec

Browse files
author
webdev778
committed
bug fix & use latest version of upload action
1 parent cba7d63 commit fed5bec

File tree

1 file changed

+36
-37
lines changed

1 file changed

+36
-37
lines changed

.github/workflows/release.yml

Lines changed: 36 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -76,43 +76,42 @@ jobs:
7676
# client-payload: '{ "ref": "${{ github.ref }}" }'
7777
asset:
7878
runs-on: ubuntu-latest
79-
if: ${{ github.event_name == 'push' }}
80-
env:
81-
BUNDLE_WITHOUT: "secryst:jsexec"
82-
SKIP_JS: "1"
83-
steps:
84-
- name: Checkout repository and submodules
85-
uses: actions/checkout@v2
86-
with:
87-
submodules: true
88-
- name: Use Ruby
89-
uses: ruby/setup-ruby@v1
90-
with:
91-
ruby-version: 3.0
92-
bundler-cache: true
93-
working-directory: ./ruby
94-
- name: Generate visualization json
95-
run: bundle exec rake generate_visualization_json
96-
- name: Upload artifacts
97-
uses: svenstaro/upload-release-action@v2
98-
with:
99-
repo_token: ${{ secrets.GITHUB_TOKEN }}
100-
file: ruby/vis_json
101-
asset_name: vis_json
102-
tag: ${{ github.ref }}
103-
overwrite: true
104-
body: "visualize json of map systems"
105-
- name: Generate metadata
106-
run: bundle exec rake generate_metadata_json
107-
- name: Upload metadata
108-
uses: svenstaro/upload-release-action@v2
109-
with:
110-
repo_token: ${{ secrets.GITHUB_TOKEN }}
111-
file: ruby/metadata.json
112-
asset_name: metadata
113-
tag: ${{ github.ref }}
114-
overwrite: true
115-
body: "metadata of all systems"
79+
env:
80+
BUNDLE_WITHOUT: "secryst:jsexec"
81+
SKIP_JS: "1"
82+
steps:
83+
- name: Checkout repository and submodules
84+
uses: actions/checkout@v2
85+
with:
86+
submodules: true
87+
- name: Use Ruby
88+
uses: ruby/setup-ruby@v1
89+
with:
90+
ruby-version: 3.0
91+
bundler-cache: true
92+
working-directory: ./ruby
93+
- name: Generate visualization json
94+
run: bundle exec rake generate_visualization_json
95+
- name: Upload artifacts
96+
uses: svenstaro/upload-release-action@2.2.1
97+
with:
98+
repo_token: ${{ secrets.GITHUB_TOKEN }}
99+
file: ruby/vis_json
100+
asset_name: vis_json
101+
tag: ${{ github.ref }}
102+
overwrite: true
103+
body: "visualize json of map systems"
104+
- name: Generate metadata
105+
run: bundle exec rake generate_metadata_json
106+
- name: Upload metadata
107+
uses: svenstaro/upload-release-action@2.2.1
108+
with:
109+
repo_token: ${{ secrets.GITHUB_TOKEN }}
110+
file: ruby/metadata.json
111+
asset_name: metadata
112+
tag: ${{ github.ref }}
113+
overwrite: true
114+
body: "metadata of all systems"
116115
# - name: Trigger interscript.org
117116
# uses: peter-evans/repository-dispatch@v1
118117
# with:

0 commit comments

Comments
 (0)