Skip to content

Commit

Permalink
feat: add release
Browse files Browse the repository at this point in the history
  • Loading branch information
crazyair committed May 20, 2020
1 parent 3255132 commit f433391
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/actions-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
on:
push:
# Sequence of patterns matched against refs/tags
# tags:
# - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
# branches:
# - master

name: Create Release

jobs:
Release:
name: Create Actions Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
- name: get changelog
id: changelog
run: node ./scripts/getChangeLog.js
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
# see https://github.com/marketplace/actions/autochangelog
body: ${{ steps.changelog.outputs.changelog}}
draft: true
prerelease: true

0 comments on commit f433391

Please sign in to comment.