Skip to content

Commit 3f00db2

Browse files
ci: try to fix publishing release
1 parent 8ef0413 commit 3f00db2

2 files changed

Lines changed: 8 additions & 31 deletions

File tree

.github/workflows/publish-alpha.yaml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,21 @@
11
name: "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.
38
on:
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

2114
jobs:
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:
@@ -106,7 +99,7 @@ jobs:
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

.github/workflows/publish-latest.yaml

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)