From 1e139f439aded841cd0a797993b38dff4b8b6001 Mon Sep 17 00:00:00 2001 From: Charles Edward Gagnon Date: Thu, 1 Aug 2024 15:12:14 -0400 Subject: [PATCH] add workflow for releases --- .github/workflows/releases.yml | 29 +++++++++++++++++++++++++++++ CHANGELOG.md | 15 +++++++++++++++ Cargo.toml | 2 +- 3 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/releases.yml create mode 100644 CHANGELOG.md diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml new file mode 100644 index 0000000..a7879a0 --- /dev/null +++ b/.github/workflows/releases.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..7ee8a51 --- /dev/null +++ b/CHANGELOG.md @@ -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. diff --git a/Cargo.toml b/Cargo.toml index c408e1b..49c8c49 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"