From 244dbc0670547cce253985e01cba3beb0b06acd5 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Wed, 2 Aug 2023 10:27:29 -0400 Subject: [PATCH] ci: move to organization managed github actions --- .github/workflows/ci.yml | 13 +++++++++++++ .github/workflows/docs.yml | 34 ---------------------------------- 2 files changed, 13 insertions(+), 34 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..2564914 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,13 @@ +name: CI/CD +on: + push: + branches: ["main"] + pull_request: + +jobs: + CI: + uses: AstroNvim/.github/.github/workflows/plugin_ci.yml@main + secrets: inherit + with: + plugin_name: ${{ github.event.repository.name }} + is_production: ${{ github.event_name == 'push' }} diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml deleted file mode 100644 index 93a9528..0000000 --- a/.github/workflows/docs.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Documentation - -on: - push: - branches: ["main"] - pull_request: - -jobs: - docs: - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Setup Lua - uses: leafo/gh-actions-lua@v10 - with: - luaVersion: 5.4 - - name: Install LDoc - uses: leafo/gh-actions-luarocks@v4 - - name: Setup dependencies - run: luarocks install ldoc - - name: Build Docs - run: | - ldoc . - - name: Deploy - uses: nwtgck/actions-netlify@v2.0 - env: - NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_TOKEN }} - NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - publish-dir: docs - production-deploy: ${{ github.ref == 'refs/heads/main' }}