Skip to content

Commit

Permalink
Base release action
Browse files Browse the repository at this point in the history
  • Loading branch information
gocom committed Jan 14, 2020
1 parent f8388ab commit 9ad0aee
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Release

on:
push:
tags:
- 'v*.*.*'

jobs:
build:
name: Create Release
runs-on: ubuntu-latest

steps:

- name: Checkout
uses: actions/checkout@v1

- name: Build API docs
run: |
make docs
sudo chmod -R 775 build
- name: Create Release
id: create_release
uses: actions/create-release@v1.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: 'changelog here'
draft: false
prerelease: false

- name: Upload API docs
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ github.workspace }}/build/docs/README.md
asset_name: API.md
asset_content_type: text/plain

0 comments on commit 9ad0aee

Please sign in to comment.