From ce0676e93eb1ebe728ec74c8b2d0bb14894b8f1d Mon Sep 17 00:00:00 2001 From: andre-maia51 Date: Thu, 25 Apr 2024 18:17:23 -0300 Subject: [PATCH 1/2] Adicionei arquivos YML para o workflow do Actions --- .github/workflows/gh-pages.yml | 31 ++++++++++++++++++++++++++++++ .github/workflows/super-linter.yml | 22 +++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 .github/workflows/gh-pages.yml create mode 100644 .github/workflows/super-linter.yml diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml new file mode 100644 index 00000000..20a78758 --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,31 @@ +name: Deploy GitHub Pages + +on: + push: + branches: + - main + paths: + - 'docs/**' + +permissions: + contents: write + +jobs: + docs: + name: mkdocs deploy + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: 3.x + + - name: Install mkdocs-material + run: pip install mkdocs-material + + - name: Deploy Docs + run: mkdocs gh-deploy --force diff --git a/.github/workflows/super-linter.yml b/.github/workflows/super-linter.yml new file mode 100644 index 00000000..689395f0 --- /dev/null +++ b/.github/workflows/super-linter.yml @@ -0,0 +1,22 @@ +name: Lint Code + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] +jobs: + run-lint: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Lint Code Base + uses: github/super-linter@v4 + env: + VALIDATE_ALL_CODEBASE: false + DEFAULT_BRANCH: "main" + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From 645802a6b3415ae5b5d57b393d87f6b3fbfe4e3d Mon Sep 17 00:00:00 2001 From: andre-maia51 Date: Thu, 25 Apr 2024 18:32:01 -0300 Subject: [PATCH 2/2] corrigindo erro de sintaxe do arquivo pages --- .github/workflows/{gh-pages.yml => pages.yml} | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) rename .github/workflows/{gh-pages.yml => pages.yml} (72%) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/pages.yml similarity index 72% rename from .github/workflows/gh-pages.yml rename to .github/workflows/pages.yml index 20a78758..1e1d6e61 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/pages.yml @@ -24,8 +24,5 @@ jobs: with: python-version: 3.x - - name: Install mkdocs-material - run: pip install mkdocs-material - - - name: Deploy Docs - run: mkdocs gh-deploy --force + - run: pip install mkdocs-material + - run: mkdocs gh-deploy --force