|
74 | 74 | # repository: interscript/interscript-api
|
75 | 75 | # event-type: ${{ github.repository }}
|
76 | 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: 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