Skip to content

Commit d6aae9c

Browse files
author
webdev778
committed
test release GHA
1 parent 3492307 commit d6aae9c

File tree

2 files changed

+59
-51
lines changed

2 files changed

+59
-51
lines changed

.github/workflows/assets.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: release
2+
3+
on:
4+
push:
5+
branches: [ master, main ]
6+
tags: [ v* ]
7+
pull_request:
8+
9+
jobs:
10+
runs-on: ubuntu-latest
11+
env:
12+
BUNDLE_WITHOUT: "secryst:jsexec"
13+
SKIP_JS: "1"
14+
steps:
15+
- name: Checkout repository and submodules
16+
uses: actions/checkout@v2
17+
with:
18+
submodules: true
19+
- name: Use Ruby
20+
uses: ruby/setup-ruby@v1
21+
with:
22+
ruby-version: 3.0
23+
bundler-cache: true
24+
working-directory: ./ruby
25+
- name: Generate visualization json
26+
run: pushd ruby; bundle exec rake generate_visualization_json; popd
27+
- name: Upload artifacts
28+
id: upload_vis_json
29+
uses: svenstaro/upload-release-action@2.2.1
30+
with:
31+
repo_token: ${{ secrets.GITHUB_TOKEN }}
32+
file: ruby/vis_json/*.json
33+
file_glob: true
34+
tag: v2.1.0b5
35+
overwrite: true
36+
body: "visualize json of map systems"
37+
- name: Generate metadata
38+
run: pushd ruby; bundle exec rake generate_metadata_json; popd
39+
- name: Upload metadata
40+
id: upload_metadata
41+
uses: svenstaro/upload-release-action@2.2.1
42+
with:
43+
repo_token: ${{ secrets.GITHUB_TOKEN }}
44+
file: ruby/metadata.json
45+
asset_name: metadata.json
46+
tag: v2.1.0b5
47+
overwrite: true
48+
body: "metadata of all systems"
49+
- name: Output link
50+
run: |
51+
echo ${{ steps.upload_vis_json.outputs.browser_download_url }}
52+
echo ${{ steps.upload_metadata.outputs.browser_download_url }}
53+
# - name: Trigger interscript.org
54+
# uses: peter-evans/repository-dispatch@v1
55+
# with:
56+
# token: ${{ secrets.INTERSCRIPT_CI_TOKEN }}
57+
# repository: interscript/interscript.org
58+
# event-type: ${{ github.repository }}
59+
# client-payload: '{ "ref": "${{ github.ref }}" }'

.github/workflows/release.yml

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -74,54 +74,3 @@ jobs:
7474
# repository: interscript/interscript-api
7575
# event-type: ${{ github.repository }}
7676
# client-payload: '{ "ref": "${{ github.ref }}" }'
77-
asset:
78-
runs-on: ubuntu-latest
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: pushd ruby; bundle exec rake generate_visualization_json; popd
95-
- name: Upload artifacts
96-
id: upload_vis_json
97-
uses: svenstaro/upload-release-action@2.2.1
98-
with:
99-
repo_token: ${{ secrets.GITHUB_TOKEN }}
100-
file: ruby/vis_json/*.json
101-
file_glob: true
102-
tag: ${{ github.ref }}
103-
overwrite: true
104-
body: "visualize json of map systems"
105-
- name: Generate metadata
106-
run: pushd ruby; bundle exec rake generate_metadata_json; popd
107-
- name: Upload metadata
108-
id: upload_metadata
109-
uses: svenstaro/upload-release-action@2.2.1
110-
with:
111-
repo_token: ${{ secrets.GITHUB_TOKEN }}
112-
file: ruby/metadata.json
113-
asset_name: metadata.json
114-
tag: ${{ github.ref }}
115-
overwrite: true
116-
body: "metadata of all systems"
117-
- name: Output link
118-
run: |
119-
echo ${{ steps.upload_vis_json.outputs.browser_download_url }}
120-
echo ${{ steps.upload_metadata.outputs.browser_download_url }}
121-
# - name: Trigger interscript.org
122-
# uses: peter-evans/repository-dispatch@v1
123-
# with:
124-
# token: ${{ secrets.INTERSCRIPT_CI_TOKEN }}
125-
# repository: interscript/interscript.org
126-
# event-type: ${{ github.repository }}
127-
# client-payload: '{ "ref": "${{ github.ref }}" }'

0 commit comments

Comments
 (0)