diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7476876..07dabb6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,8 +7,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} - name: Stylua - uses: JohnnyMorganz/stylua-action@v3 + uses: JohnnyMorganz/stylua-action@v4 with: token: ${{ secrets.GITHUB_TOKEN }} version: latest @@ -41,6 +43,8 @@ jobs: contents: write steps: - uses: actions/checkout@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} - uses: rhysd/action-setup-vim@v1 id: vim with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..a261d7d --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,38 @@ +name: Release +on: + push: + branches: + - release + pull_request: + branches: + - main + - release + +permissions: + contents: write + pull-requests: write + +jobs: + release: + name: release + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@v4 + id: release + with: + release-type: simple + package-name: hurl.nvim + token: ${{ secrets.GITHUB_TOKEN }} + - uses: actions/checkout@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + - 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 diff --git a/doc/hurl.nvim.txt b/doc/hurl.nvim.txt index 8df880d..b95ce44 100644 --- a/doc/hurl.nvim.txt +++ b/doc/hurl.nvim.txt @@ -1,4 +1,4 @@ -*hurl.nvim.txt* For NVIM v0.8.0 Last change: 2024 February 03 +*hurl.nvim.txt* For NVIM v0.8.0 Last change: 2024 February 15 ============================================================================== Table of Contents *hurl.nvim-table-of-contents* diff --git a/version.txt b/version.txt new file mode 100644 index 0000000..6e8bf73 --- /dev/null +++ b/version.txt @@ -0,0 +1 @@ +0.1.0