Skip to content

Neovim Plugins Package #17

Neovim Plugins Package

Neovim Plugins Package #17

Workflow file for this run

name: Neovim Plugins Package
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '30 5,17 * * *'
jobs:
build:
runs-on: ${{ matrix.os }}
permissions:
contents: write
pull-requests: write
repository-projects: write
strategy:
# Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable.
fail-fast: false
# Set up a matrix to run the following 3 configurations:
# 1. <Windows, Release, latest MSVC compiler toolchain on the default runner image, default generator>
# 2. <Linux, Release, latest GCC compiler toolchain on the default runner image, default generator>
# 3. <Linux, Release, latest Clang compiler toolchain on the default runner image, default generator>
#
# To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list.
matrix:
#os: [ubuntu-latest, windows-latest, macos-latest ]
os: [ubuntu-latest]
build_type: [Release]
steps:
- uses: actions/checkout@v4
- name: Set reusable strings
# Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file.
id: strings
shell: bash
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
git config --local user.name srbhp
git config --local user.email "pradhanphy@gmail.com"
git commit --allow-empty -m "GH action Headlines $(date)"
git push origin main
- name: Install Neovim
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: >
bash install.sh
- name: Create tar of Neovim Plugins
run: >
tar -cvf neovim-share.tar.gz ~/.local/share/nvim
- name: Get the current commit hash
id: vars
run: echo "TIMESTAMP=$(date +%Y%m%d)" >> $GITHUB_ENV
- name: Create a new release
run: |
gh release create release-${{ env.TIMESTAMP }} \
--title "Release ${{ env.TIMESTAMP }}" \
--notes "Automated release for commit ${{ env.COMMIT_HASH }}" \
--target ${{ github.ref }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload artifact signatures to GitHub Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Upload to GitHub Release using the `gh` CLI.
# `dist/` contains the built packages, and the
# sigstore-produced signatures and certificates.
run: >-
gh release upload release-${{ env.TIMESTAMP }} neovim-share.tar.gz --repo 'srbhp/nvim' --clobber
shell: bash