|
1 |
| -name: release |
| 1 | +name: release-assets |
2 | 2 |
|
3 | 3 | on:
|
4 | 4 | push:
|
|
7 | 7 | pull_request:
|
8 | 8 |
|
9 | 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 }} |
| 10 | + assets: |
| 11 | + runs-on: ubuntu-latest |
| 12 | + env: |
| 13 | + BUNDLE_WITHOUT: "secryst:jsexec" |
| 14 | + SKIP_JS: "1" |
| 15 | + steps: |
| 16 | + - name: Checkout repository and submodules |
| 17 | + uses: actions/checkout@v2 |
| 18 | + with: |
| 19 | + submodules: true |
| 20 | + - name: Use Ruby |
| 21 | + uses: ruby/setup-ruby@v1 |
| 22 | + with: |
| 23 | + ruby-version: 3.0 |
| 24 | + bundler-cache: true |
| 25 | + working-directory: ./ruby |
| 26 | + - name: Generate visualization json |
| 27 | + run: pushd ruby; bundle exec rake generate_visualization_json; popd |
| 28 | + - name: Upload artifacts |
| 29 | + id: upload_vis_json |
| 30 | + uses: svenstaro/upload-release-action@2.2.1 |
| 31 | + with: |
| 32 | + repo_token: ${{ secrets.GITHUB_TOKEN }} |
| 33 | + file: ruby/vis_json/*.json |
| 34 | + file_glob: true |
| 35 | + tag: v2.1.0b5 |
| 36 | + overwrite: true |
| 37 | + body: "visualize json of map systems" |
| 38 | + - name: Generate metadata |
| 39 | + run: pushd ruby; bundle exec rake generate_metadata_json; popd |
| 40 | + - name: Upload metadata |
| 41 | + id: upload_metadata |
| 42 | + uses: svenstaro/upload-release-action@2.2.1 |
| 43 | + with: |
| 44 | + repo_token: ${{ secrets.GITHUB_TOKEN }} |
| 45 | + file: ruby/metadata.json |
| 46 | + asset_name: metadata.json |
| 47 | + tag: v2.1.0b5 |
| 48 | + overwrite: true |
| 49 | + body: "metadata of all systems" |
| 50 | + - name: Output link |
| 51 | + run: | |
| 52 | + echo ${{ steps.upload_vis_json.outputs.browser_download_url }} |
| 53 | + echo ${{ steps.upload_metadata.outputs.browser_download_url }} |
53 | 54 | # - name: Trigger interscript.org
|
54 | 55 | # uses: peter-evans/repository-dispatch@v1
|
55 | 56 | # with:
|
|
0 commit comments