mirror of
https://github.com/visgl/react-map-gl.git
synced 2026-01-18 15:54:22 +00:00
37 lines
836 B
YAML
37 lines
836 B
YAML
name: release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- v*
|
|
|
|
jobs:
|
|
release-notes:
|
|
runs-on: ubuntu-latest
|
|
|
|
if: github.repository_owner == 'visgl'
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
|
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
|
|
with:
|
|
node-version: '18.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 ${GITHUB_TOKEN}"
|