-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (28 loc) · 813 Bytes
/
release.yml
File metadata and controls
36 lines (28 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: release
on:
push:
tags:
- v*
jobs:
release-notes:
runs-on: ubuntu-latest
if: github.repository_owner == 'visgl'
env:
ADMIN_TOKEN: ${{ secrets.ADMIN_TOKEN }}
steps:
- uses: actions/checkout@v2.1.1
- name: Get git tags (https://github.com/actions/checkout/issues/206)
run: git fetch --tags -f
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Publish release
run: |
body=$(node scripts/github-release.js) &&
curl \
-X POST \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/visgl/react-map-gl/releases \
-d "${body}" \
-H "Authorization: token ${ADMIN_TOKEN}"