Skip to content

Commit

Permalink
so meta
Browse files Browse the repository at this point in the history
  • Loading branch information
Jess Carlos committed Jun 11, 2020
1 parent a617de8 commit 782b72c
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 3 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Master

on:
push:
branches:
- master

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

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Get Version
run: echo ::set-env name=REL_VERSION::$(cat ./version)

- name: Create changlog.md
uses: ssgglobal/yaml-release-action@master
with:
version: ${{ env.REL_VERSION }}
release: './release.yml'
markdown: './changelog.md'

- name: Set changlog.md data in env var
run: |
echo ::set-env name=REL_NAME::$(head -n 1 ./changelog.md | tr -d '#')
- name: Tag release
uses: ssgglobal/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: 'v${{ env.REL_VERSION }}'
target_commitish: 'master'
release_name: ${{ env.REL_NAME }}
body_path: changelog.md
4 changes: 2 additions & 2 deletions release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
releases:

- version: 0.1.0
- version: 0.2.0
changes:
- description: 'Initial Release.'
- description: 'autotag release.'
author: '@jesscarlos'
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.0
0.2.0

0 comments on commit 782b72c

Please sign in to comment.