-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from marco-souza/enh/tag-release
fea: setup tag-release workflow
- Loading branch information
Showing
5 changed files
with
67 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Quality Gateway | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
quality-gateway: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: install dependencies | ||
run: sudo apt update && sudo apt install -y neovim | ||
|
||
- name: Run tests | ||
run: make tests |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#! /bin/bash | ||
version=$(cat plugin.json | jq -r '.version') | ||
echo Package version is $version | ||
|
||
tag_version=$(git tag -l | grep $version) | ||
echo Repo tag found: $tag_version | ||
|
||
# exit if tag already exists | ||
if [ -n "$tag_version" ]; then | ||
echo "Tag $version already exists" | ||
exit 0 | ||
fi | ||
|
||
echo "Creating tag $version" | ||
git tag $version && git push --tags | ||
|
||
echo "Creating release $version" | ||
gh release create -t $version --generate-notes --latest $version | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Tag release | ||
|
||
on: | ||
push: | ||
paths: | ||
- plugin.json | ||
- .github/workflows/tag-release.yml | ||
- .github/workflows/tag-release.sh | ||
|
||
jobs: | ||
gh-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Create release with tag | ||
run: sh .github/workflows/tag-release.sh | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"name": "marco-souza/ollero.nvim", | ||
"description": "A plugin to open an input box for chating with Ollama", | ||
"version": "0.1.6" | ||
} |