Skip to content

Commit

Permalink
Added Changelog.md; Added releases GH actions workflow; (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
k-karuna authored Feb 28, 2023
1 parent 8053594 commit 3a10014
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Release
on:
push:
tags:
- '*.*.*'

jobs:
release:
name: Release
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- name: Check out the repo
uses: actions/checkout@v3

- name: Archive Release
uses: thedoctor0/[email protected]
with:
type: 'zip'
filename: 'tezos-unity-sdk.zip'
exclusions: '*.git* *.github*'

- name: Parse changelog
id: changelog
uses: mindsers/changelog-reader-action@v2
with:
version: ${{ github.ref_name }}

- name: Release
uses: softprops/action-gh-release@v1
with:
name: ${{ steps.changelog.outputs.version }}
tag_name: ${{ github.ref_name }}
body: |
## ${{ steps.changelog.outputs.date }}
${{ steps.changelog.outputs.changes }}
prerelease: ${{ steps.changelog.outputs.status == 'prereleased' }}
files: 'tezos-unity-sdk.zip'
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.0.1] - 2023-02-28
### Added
- The project has now a CHANGELOG
- Added auto releases with GH actions

[0.0.1]: https://github.com/trilitech/tezos-unity-sdk/releases/tag/0.0.1

0 comments on commit 3a10014

Please sign in to comment.