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
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