Skip to content

Commit

Permalink
Merge pull request #17 from lucobellic/feature/update-ci-workflow
Browse files Browse the repository at this point in the history
ci: update workflow with lint and release please
  • Loading branch information
lucobellic authored Mar 20, 2024
2 parents a3dfd68 + 72a283c commit d8b9a02
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 27 deletions.
3 changes: 3 additions & 0 deletions .github/.release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "0.3.4"
}
10 changes: 10 additions & 0 deletions .github/release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"packages": {
".": {
"release-type": "simple",
"package-name": "edgy-group.nvim",
"bump-patch-for-minor-pre-major": true,
"bump-minor-pre-major": true
}
}
}
54 changes: 27 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,38 @@ on:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
lint:
runs-on: ubuntu-latest
name: lint
steps:
- uses: actions/checkout@v4
- uses: JohnnyMorganz/stylua-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: --check . -g '*.lua' -g '!deps/'

docs:
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
# Steps represent a sequence of tasks that will be executed as part of the job
steps:

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/checkout@v4

# Generator documentation
- name: panvimdoc
uses: kdheepak/panvimdoc@main
with:
vimdoc: edgy-group.nvim
version: "Neovim >= 0.8.0"
version: "Neovim >= 0.9.0"
toc: true
demojify: true
treesitter: true
ignorerawblocks: true
dedupsubheadings: true
docmappingprojectname: true
titledatepattern: "%Y"
shiftheadinglevelby: -1

# Push documentation update
Expand All @@ -45,27 +56,16 @@ jobs:
commit_user_email: "github-actions[bot]@users.noreply.github.com"
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"

# TODO: configure release process
# release:
# name: release
# if: ${{ github.ref == 'refs/heads/main' }}
# needs:
# - docs
# runs-on: ubuntu-latest
# steps:
# - uses: google-github-actions/release-please-action@v3
# id: release
# with:
# release-type: simple
# package-name: edgy-group.nvim
# - uses: actions/checkout@v3
# - name: tag stable versions
# if: ${{ steps.release.outputs.release_created }}
# run: |
# git config user.name github-actions[bot]
# git config user.email github-actions[bot]@users.noreply.github.com
# git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/google-github-actions/release-please-action.git"
# git tag -d stable || true
# git push origin :stable || true
# git tag -a stable -m "Last Stable Release"
# git push origin stable
release:
name: release
if: ${{ github.ref == 'refs/heads/main' }}
needs:
- docs
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
config-file: .github/release-please-config.json
manifest-file: .github/.release-please-manifest.json

0 comments on commit d8b9a02

Please sign in to comment.