Skip to content

Commit

Permalink
Make CI publish latest tagged web-viewer to app.rerun.io (rerun-i…
Browse files Browse the repository at this point in the history
…o#1725)

* Make sure the CI publishes `latest` tag to `app.rerun.io`

* Upload to `latest` folder

* fix copy-paste

Co-authored-by: Clement Rey <[email protected]>

---------

Co-authored-by: Clement Rey <[email protected]>
  • Loading branch information
emilk and teh-cmc authored Mar 30, 2023
1 parent 680f791 commit b2298e9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ jobs:
- name: Add SHORT_SHA env property with commit short sha
run: echo "SHORT_SHA=`echo ${{github.sha}} | cut -c1-7`" >> $GITHUB_ENV

- name: "Upload RRD"
- name: "Upload RRD (commit)"
uses: google-github-actions/upload-cloud-storage@v1
with:
path: "rrd"
Expand All @@ -312,6 +312,14 @@ jobs:
destination: "rerun-example-rrd/version/${{github.ref_name}}"
parent: false

- name: "Upload RRD (latest release)"
if: github.ref == 'latest'
uses: google-github-actions/upload-cloud-storage@v1
with:
path: "rrd"
destination: "rerun-example-rrd/latest"
parent: false

# See https://github.com/ncipollo/release-action
pre-release:
name: Pre Release
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ jobs:
- name: Add SHORT_SHA env property with commit short sha
run: echo "SHORT_SHA=`echo ${{github.sha}} | cut -c1-7`" >> $GITHUB_ENV

- name: "Upload web-viewer"
- name: "Upload web-viewer (commit)"
uses: google-github-actions/upload-cloud-storage@v1
with:
path: "web_viewer"
Expand All @@ -321,6 +321,14 @@ jobs:
destination: "rerun-web-viewer/version/${{github.ref_name}}"
parent: false

- name: "Upload web-viewer (latest release)"
if: github.ref == 'latest'
uses: google-github-actions/upload-cloud-storage@v1
with:
path: "web_viewer"
destination: "rerun-web-viewer/latest"
parent: false

# ---------------------------------------------------------------------------

rs-cargo-deny:
Expand Down

0 comments on commit b2298e9

Please sign in to comment.