Skip to content

Commit ab46972

Browse files
authored
Fix publish action (#77)
* use tag name * name * adjust file * get output * outputs * fix * what are you? * better log * onemore? * onece more * tie the envs * change which template to test
1 parent fb878a3 commit ab46972

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

.github/workflows/publish-build.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Publish Templates
2+
23
on:
34
workflow_dispatch:
45
inputs:
@@ -7,9 +8,9 @@ on:
78
required: true
89
type: choice
910
options:
10-
- Reflex Build Dev
11-
- Reflex Build Stg
12-
- Reflex Build Prod
11+
- development
12+
- staging
13+
- production
1314
release_tag:
1415
description: 'Release tag (leave empty for latest)'
1516
required: false
@@ -41,7 +42,8 @@ jobs:
4142
repo: context.repo.repo
4243
});
4344
}
44-
return release.data;
45+
console.log(release.data.tag_name);
46+
return release.data.tag_name;
4547
4648
trigger-second-repo:
4749
needs: prepare-release-info
@@ -53,4 +55,4 @@ jobs:
5355
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
5456
repository: reflex-dev/flexgen
5557
event-type: release
56-
client-payload: ${{ needs.prepare-release-info.outputs.release_info }}
58+
client-payload: '{"release": ${{ needs.prepare-release-info.outputs.release_info }}, "environment": "${{ github.event.inputs.environment }}"}'

templates.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"description": "An app to manage customer data.",
6262
"demo_url": "https://customer-data-app.reflex.run/",
6363
"hidden": false,
64-
"reflex_build": false
64+
"reflex_build": true
6565
},
6666
{
6767
"name": "reflex-chat",
@@ -73,7 +73,7 @@
7373
"name": "reflex-llamaindex-template",
7474
"description": "A template for LlamaIndex.",
7575
"hidden": false,
76-
"reflex_build": true
76+
"reflex_build": false
7777
}
7878
]
7979
}

0 commit comments

Comments
 (0)