doc fix: Fixed syntax error and added test for RST syntax #36
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
name: Release Version | |
# When merged into main | |
# - Only when src is changed | |
# - minor version bump - if new test functions are added? | |
# - patch version bump - if no new tests | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
name: Creating release | |
runs-on: "ubuntu-latest" | |
permissions: write-all | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: Early exit | |
env: | |
GH_RUN_ID: ${{ github.run_id }} | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: make gh-has-src-changed || make gh-cancel | |
- name: Setup | |
run: | | |
git config --global user.name 'Github Actions' | |
git config --global user.email 'none@none.none' | |
- name: | |
run: echo $(git log -5 --oneline) | |
- name: Bump version | |
run: make bump-version-auto | |
- name: Commit version | |
run: make commit-version-tag | |
- name: Push to main | |
run: git push origin $(git rev-parse --abbrev-ref HEAD) --tags | |
- name: Create release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
export tag="$( make version )" | |
echo "$tag" | |
make gh-release |