Skip to content

Commit

Permalink
feat: bump up add (#5)
Browse files Browse the repository at this point in the history
feat: bump up add
  • Loading branch information
tsuyoshicho committed Jan 21, 2020
2 parents fdb654c + 3d19c65 commit 918bac6
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 18 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: release
on:
push:
branches:
- master
tags:
- 'v*.*.*'

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

# Bump version on merging Pull Requests with specific labels.
# (bump:major,bump:minor,bump:patch)
- id: bumpr
if: "!startsWith(github.ref, 'refs/tags/')"
uses: haya14busa/action-bumpr@v1

# Update corresponding major and minor tag.
# e.g. Update v1 and v1.2 when releasing v1.2.3
- uses: haya14busa/action-update-semver@v1
if: "!steps.bumpr.outputs.skip"
with:
github_token: ${{ secrets.github_token }}
tag: ${{ steps.bumpr.outputs.next_version }}

# Get tag name.
- id: tag
uses: haya14busa/action-cond@v1
with:
cond: "${{ startsWith(github.ref, 'refs/tags/') }}"
if_true: ${{ github.ref }}
if_false: ${{ steps.bumpr.outputs.next_version }}

# Create release.
- uses: actions/create-release@v1
if: "steps.tag.outputs.value != ''"
env:
# This token is provided by Actions, you do not need to create your own token
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tag.outputs.value }}
release_name: Release ${{ steps.tag.outputs.value }}
body: ${{ steps.bumpr.outputs.message }}
draft: false
prerelease: false
15 changes: 0 additions & 15 deletions .github/workflows/update_semver.yml

This file was deleted.

8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# GitHub Action: Run vim help html generator

[![Docker Image CI](https://github.com/tsuyoshicho/action-vimhelp-tagname-check/workflows/Docker%20Image%20CI/badge.svg)](https://github.com/tsuyoshicho/action-vimhelp-tagname-check/actions)
[![Release](https://github.com/tsuyoshicho/action-vimhelp-tagname-check/workflows/release/badge.svg)](https://github.com/tsuyoshicho/action-vimhelp-tagname-check/releases)

## action-vimhelp-html-generate

Generate html from Vim help (/doc)
Expand All @@ -10,9 +13,7 @@ Generate html from Vim help (/doc)

**Optional**. generate html store folder

```
default value: "build"
```

## Example usage

Expand Down Expand Up @@ -45,12 +46,13 @@ jobs:
FOLDER: build
```

## Special thanks.
## Special thanks

- [thinca's vim docker image](https://hub.docker.com/r/thinca/vim)
- [vim-jp vimdoc-jp help](https://github.com/vim-jp/vimdoc-ja)

## License

[CC0 1.0 Universal](http://creativecommons.org/publicdomain/zero/1.0/)

vim-jp: vimdoc-ja-working's [discussion](https://github.com/vim-jp/vimdoc-ja-working/issues/733).

0 comments on commit 918bac6

Please sign in to comment.