[go: up one dir, main page]

Skip to content

Merge pull request #256 from Bluebottel/remove-polyfill #65

Merge pull request #256 from Bluebottel/remove-polyfill

Merge pull request #256 from Bluebottel/remove-polyfill #65

Workflow file for this run

name: Make a release
on:
push:
branches:
- master
tags:
- v*
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Clean install
run: npm clean-install
- name: Build
id: build
run: npm run build
- name: Compress
id: compress_zip
run: zip tableaunoir.zip dist
if: ${{ always() && steps.build.outcome == 'success' }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: release
release_name: Release ${{ github.ref }}
draft: false
prerelease: true
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./tableaunoir.zip
asset_name: tableaunoir.zip
asset_content_type: application/zip