Skip to content

Commit ea80c3c

Browse files
committed
workflow: pass secret correctly
1 parent e7df620 commit ea80c3c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/workflow.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,12 @@ jobs:
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v2
17-
- name: Extract branch name
18-
shell: bash
19-
run: echo "::set-env name=BRANCH_NAME::$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//_/g')"
2017
- name: Use Node.js ${{ matrix.node-version }}
2118
uses: actions/setup-node@v1
2219
with:
2320
node-version: 14
2421
- run: npm install
2522
- run: npm run build
26-
- run: bash ".ci/publish_$BRANCH_NAME.sh"
23+
- run: bash ".ci/publish_${GITHUB_REF##*/}.sh"
24+
env:
25+
BINTRAY_API_TOKEN: ${{ secrets.BINTRAY_API_TOKEN }}

0 commit comments

Comments
 (0)