mirror of
https://github.com/4ian/GDevelop.git
synced 2025-10-15 10:19:04 +00:00
Compare commits
3 Commits
v5.2.166
...
publish-st
Author | SHA1 | Date | |
---|---|---|---|
![]() |
f0e83909df | ||
![]() |
d3a4e28152 | ||
![]() |
531f66b3ab |
19
.github/workflows/build-storybook.yml
vendored
19
.github/workflows/build-storybook.yml
vendored
@@ -55,10 +55,25 @@ jobs:
|
|||||||
run: aws s3 sync ./build-storybook/ s3://gdevelop-storybook/$(git rev-parse --abbrev-ref HEAD)/latest/ --delete
|
run: aws s3 sync ./build-storybook/ s3://gdevelop-storybook/$(git rev-parse --abbrev-ref HEAD)/latest/ --delete
|
||||||
working-directory: newIDE/app
|
working-directory: newIDE/app
|
||||||
|
|
||||||
|
- name: Compute urls
|
||||||
|
id: storybook_urls
|
||||||
|
run: |
|
||||||
|
echo "::set-output name=storybook_s3_url_commit::http://gdevelop-storybook.s3-website-us-east-1.amazonaws.com/$(git rev-parse --abbrev-ref HEAD)/commit/$(git rev-parse HEAD)/index.html"
|
||||||
|
echo "::set-output name=storybook_s3_url_latest::http://gdevelop-storybook.s3-website-us-east-1.amazonaws.com/$(git rev-parse --abbrev-ref HEAD)/latest/index.html"
|
||||||
|
|
||||||
- name: Log urls to the Storybook
|
- name: Log urls to the Storybook
|
||||||
run: |
|
run: |
|
||||||
echo "Find the latest Storybook for this branch on http://gdevelop-storybook.s3-website-us-east-1.amazonaws.com/$(git rev-parse --abbrev-ref HEAD)/latest/index.html"
|
echo "Find the Storybook for this commit on ${{ steps.storybook_urls.outputs.storybook_s3_url_commit }}"
|
||||||
echo "Find the Storybook for this commit on http://gdevelop-storybook.s3-website-us-east-1.amazonaws.com/$(git rev-parse --abbrev-ref HEAD)/commit/$(git rev-parse HEAD)/index.html"
|
echo "Find the latest Storybook for this branch on ${{ steps.storybook_urls.outputs.storybook_s3_url_latest }}"
|
||||||
|
|
||||||
|
- name: Update GitHub Check with Storybook URLs
|
||||||
|
uses: LouisBrunner/checks-action@v1.1.1
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
check_id: ${{ github.run_id }}
|
||||||
|
conclusion: success
|
||||||
|
output: |
|
||||||
|
{"summary": "## Links to storybook\n\n- For the commit: ${{ steps.storybook_urls.outputs.storybook_s3_url_commit }}\n- Under tag latest: ${{ steps.storybook_urls.outputs.storybook_s3_url_latest }}"}
|
||||||
|
|
||||||
# Publish on Chromatic, only when manually launched (too costly to run on every commit).
|
# Publish on Chromatic, only when manually launched (too costly to run on every commit).
|
||||||
- name: Publish Storybook to Chromatic
|
- name: Publish Storybook to Chromatic
|
||||||
|
Reference in New Issue
Block a user