Skip to content

Commit aee90dd

Browse files
author
webdev778
authored
Merge pull request #730 from interscript/release-artifacts
Release artifacts
2 parents a2850a7 + fed5bec commit aee90dd

File tree

2 files changed

+47
-42
lines changed

2 files changed

+47
-42
lines changed

.github/workflows/rake.yml

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -53,43 +53,3 @@ jobs:
5353
run: |
5454
bundle install --with=jsexec
5555
bundle exec rspec -f f
56-
57-
generate-json:
58-
runs-on: ubuntu-latest
59-
needs: rspec
60-
if: ${{ github.event_name == 'push' }}
61-
env:
62-
BUNDLE_WITHOUT: "secryst:jsexec"
63-
SKIP_JS: "1"
64-
steps:
65-
- name: Checkout repository and submodules
66-
uses: actions/checkout@v2
67-
with:
68-
submodules: true
69-
- name: Use Ruby
70-
uses: ruby/setup-ruby@v1
71-
with:
72-
ruby-version: 3.0
73-
bundler-cache: true
74-
working-directory: ./ruby
75-
- name: Generate visualization json
76-
run: bundle exec rake generate_visualization_json
77-
- name: Upload artifacts
78-
uses: actions/upload-artifact@v2
79-
with:
80-
name: vis_json
81-
path: ruby/vis_json
82-
- name: Generate metadata
83-
run: bundle exec rake generate_metadata_json
84-
- name: Upload metadata
85-
uses: actions/upload-artifact@v2
86-
with:
87-
name: metadata
88-
path: ruby/metadata.json
89-
- name: Trigger interscript.org
90-
uses: peter-evans/repository-dispatch@v1
91-
with:
92-
token: ${{ secrets.INTERSCRIPT_CI_TOKEN }}
93-
repository: interscript/interscript.org
94-
event-type: ${{ github.repository }}
95-
client-payload: '{ "ref": "${{ github.ref }}" }'

.github/workflows/release.yml

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
with:
1818
ruby-version: '2.7'
1919
architecture: 'x64'
20-
20+
2121
- uses: actions/setup-node@v1
2222
with:
2323
node-version: 14.x
@@ -73,4 +73,49 @@ jobs:
7373
# token: ${{ secrets.INTERSCRIPT_CI_PAT_TOKEN }}
7474
# repository: interscript/interscript-api
7575
# event-type: ${{ github.repository }}
76-
# client-payload: '{ "ref": "${{ github.ref }}" }'
76+
# 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: 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"
115+
# - name: Trigger interscript.org
116+
# uses: peter-evans/repository-dispatch@v1
117+
# with:
118+
# token: ${{ secrets.INTERSCRIPT_CI_TOKEN }}
119+
# repository: interscript/interscript.org
120+
# event-type: ${{ github.repository }}
121+
# client-payload: '{ "ref": "${{ github.ref }}" }'

0 commit comments

Comments
 (0)