codesnap.nvim/.github/workflows/release.yml

73 lines
1.8 KiB
YAML
Raw Normal View History

2024-02-13 06:05:36 +00:00
name: Release
on:
push:
paths:
project.toml
2024-02-13 06:05:36 +00:00
branches:
- main
[Release] v1.0.0 (#43) * [Update] apply template * [Feat] update assets files (#35) * [Update] README add packer install config * [Feat] take snapshot via skia engine * [Feat] title component * [Feat] add watermark * [Feat] update padding of code panel * [Remove] pack ci script * [Release] v1.0.0 * [Update] apply template * [Chore] remove unused code * [Update] readme * [Release] v1.0.1 * [Update] apply template * [Update] readme * Update README.md * [Feat] compile nvim-0.9 FFI * [Release] v1.0.2 * [Update] apply template * [Update] README.md * [Feat] add multi platform support * [Feat] add workflow for build target binary package * [Update] files based on generated files by template generator * [Update] files based on generated files by template generator * [Update] files based on generated files by template generator * [Update] files based on generated files by template generator * [Update] files based on generated files by template generator * [Update] files based on generated files by template generator * [Update] files based on generated files by template generator * [Feat] build plugin after released * [Delete] build.yml * [Update] README * [Release] v1.0.3 * [Update] README * [Refactor] editor frame size calculation logic * [Refactor] update margin of watermark * [Feat] preset font family * [Refactor] update component interface * [Update] change theme to onedark * [Refactor] redefine render_error and throw it to lua scope * [Perf] build script * [Refactor] abstract component concept & implement it for all widgets * [Update] README.md --------- Co-authored-by: mistricky <mistricky@users.noreply.github.com>
2024-03-16 17:07:12 +00:00
permissions:
contents: write
2024-02-13 06:05:36 +00:00
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Wait for build workflow to succeed
uses: lewagon/wait-on-check-action@v1.3.4
with:
ref: ${{ github.ref }}
check-regexp: 'with rust'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 10
2024-04-05 16:16:55 +00:00
allowed-conclusions: success,skipped,cancelled
2024-02-13 06:05:36 +00:00
- name: Checkout
uses: actions/checkout@v4
2024-04-02 06:45:34 +00:00
with:
fetch-depth: 0
ref: ${{ github.ref }}
2024-02-13 06:05:36 +00:00
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: "3.11"
2024-04-02 06:45:34 +00:00
- name: Read version from project config
id: read_toml
uses: SebRollen/toml-action@v1.0.2
with:
file: project.toml
field: project.version
2024-02-13 06:05:36 +00:00
- name: Replace template
run: python3 scripts/replace-template.py
- name: Commit changes
2024-03-16 17:55:44 +00:00
uses: EndBug/add-and-commit@v7
2024-02-13 06:05:36 +00:00
with:
2024-04-02 06:45:34 +00:00
message: '[Release] ${{ steps.read_toml.outputs.value }}'
2024-03-16 17:55:44 +00:00
pull_strategy: 'NO-PULL'
push: false
- name: Push changes
run: |
git pull --rebase
2024-04-02 06:45:34 +00:00
git push
2024-02-13 06:05:36 +00:00
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/github-tag-action@v6.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ steps.read_toml.outputs.value }}
- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
generateReleaseNotes: true