-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add release process and cut version 0.1.0 (#29)
Adding CI steps to tag releases following CHANGELOG entries to reduce unknowns and provide an easy way to communicate relevant changes.
- Loading branch information
Showing
3 changed files
with
49 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,16 +10,34 @@ jobs: | |
tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: cachix/install-nix-action@v16 | ||
with: | ||
install_url: https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.8.0pre20220311_d532269/install | ||
extra_nix_config: | | ||
experimental-features = nix-command flakes | ||
allow-import-from-derivation = true | ||
- name: checkout repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: install nix | ||
uses: cachix/install-nix-action@v20 | ||
|
||
- name: Run Nix Flake Check | ||
run: nix -Lv flake check | ||
- name: configure cache | ||
uses: DeterminateSystems/magic-nix-cache-action@v1 | ||
|
||
- name: check flake | ||
run: nix -Lv flake check | ||
|
||
- name: check nix parsing | ||
run: nix -Lv develop -c evalnix | ||
|
||
- name: Check Nix parsing | ||
run: nix -Lv develop -c evalnix | ||
- name: get latest tag | ||
id: latest | ||
uses: actions-ecosystem/action-get-latest-tag@v1 | ||
|
||
- name: parse changelog | ||
id: changelog | ||
uses: coditory/changelog-parser@v1 | ||
|
||
- name: create release | ||
id: release | ||
uses: softprops/action-gh-release@v1 | ||
if: github.ref == 'refs/heads/main' && steps.changelog.outputs.version != steps.latest.outputs.tag | ||
with: | ||
files: ${{ steps.package.outputs.path }} | ||
body: ${{ steps.changelog.outputs.description }} | ||
tag_name: ${{ steps.changelog.outputs.version }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# 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). | ||
|
||
## [Unreleased] | ||
|
||
## [0.1.0] - 2023-07-06 | ||
|
||
### Added | ||
|
||
- initial tagged release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters