File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : " Publish alpha/latest release"
22
3+ env :
4+ PUBLISH_LATEST : ${{ github.event_name == 'workflow_dispatch' }}
5+
6+ # Manually launch to create a RELEASE and publish to latest tag.
7+ # Automatically launch on push to main to publish alpha versions.
38on :
9+ workflow_dispatch :
410 push :
511 branches :
612 - main
7- workflow_call :
8- inputs :
9- publish_latest :
10- required : true
11- type : boolean
12- default : false
13- secrets :
14- ORMI_0x_GRAPH_API_KEY_TESTING :
15- required : true
16- THE_GRAPH_STUDIO_DEPLOY_KEY :
17- required : true
18- BSNORG_ACTIONS_SECRET :
19- required : true
2013
2114jobs :
2215 publish :
2316 name : Publish alpha packages
2417 runs-on : ubuntu-latest
25- if : ${{ !inputs.publish_latest }}
18+ if : ${{ !$PUBLISH_LATEST }}
2619 outputs :
2720 SUBGRAPH_CHANGES : ${{ steps.export-changed-subgraph-files.outputs.SUBGRAPH_CHANGES }}
2821 permissions :
10699 publish_latest_release :
107100 name : Publish latest packages
108101 runs-on : ubuntu-latest
109- if : ${{ inputs.publish_latest }}
102+ if : ${{ $PUBLISH_LATEST }}
110103 permissions :
111104 contents : write # Required to push commit with updated versions
112105 packages : write # Allows publishing and modifying packages
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments