Skip to content

Commit

Permalink
add workflow for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
carloskiki committed Aug 1, 2024
1 parent 095e5f2 commit 1e139f4
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release

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

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Extract version from tag
run: |
VERSION=$(echo ${GITHUB_REF} | sed 's/refs\/tags\///')
echo "VERSION={$VERSION#v}" >> $GITHUB_ENV
- name: Get Changelog
run: |
changelog=$(grep -A 1000 "^## \[$VERSION\]" CHANGELOG.md | sed '1d;/^## \[/,$d')
echo "RELEASE_NOTES=$changelog" >> $GITHUB_ENV
- name: Release
uses: softprops/action-gh-release@v2
with:
body: ${{ env.RELEASE_NOTES }}
files: |
styles.css
font/
generate_release_notes: true
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# 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.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [0.4.0] - 2024-08-01

### Changed

- Added a full error trace to the errors returned by the `Parser`.
- Updated `fantoccini` from `0.19.0` to `0.21.0` in test suite.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pulldown-latex"
version = "0.3.0"
version = "0.4.0"
authors = ["Charles Edward Gagnon"]
edition = "2021"
description = "Pull parser to convert LaTeX equations to MathML"
Expand Down

0 comments on commit 1e139f4

Please sign in to comment.