Skip to content

1.2.6

1.2.6 #14

Workflow file for this run

name: Release Draft
on:
push:
tags: ['v1*', 'v2*']
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 16.x
- run: npm ci
env:
CI: true
- name: build
run: |
npm run build
mkdir ./release
cp ./dist/cdn/mapbox-gl-legend.js ./release/.
cp ./css/styles.css ./release/mapbox-gl-legend.css
- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: true
- name: Upload Release Assets
id: upload-release-assets
uses: dwenegar/upload-release-assets@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_id: ${{ steps.create_release.outputs.id }}
assets_path: ./release