From 179252829702f907000bbf76cc6263dc7f6c0053 Mon Sep 17 00:00:00 2001 From: Marius Stanca Date: Fri, 21 Jan 2022 09:52:18 +0200 Subject: [PATCH] Add github actions workflows #10 --- .github/CODEOWNERS | 1 + .github/CONTRIBUTING.md | 0 .github/workflows/deploy.yml | 23 +++++++++++++++++++++++ .travis.yml | 18 ------------------ README.md | 3 ++- 5 files changed, 26 insertions(+), 19 deletions(-) create mode 100644 .github/CODEOWNERS create mode 100644 .github/CONTRIBUTING.md create mode 100644 .github/workflows/deploy.yml delete mode 100644 .travis.yml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..5786d98 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @wmariuss diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md new file mode 100644 index 0000000..e69de29 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..44cd8e3 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,23 @@ +name: Deploy + +on: + push: + branches: + - main + - add/actions + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: 3.7 + + - name: Build and deploy + run: | + cp README.md docs/index.md + pip install -r requirements.txt + mkdocs build + mkdocs gh-deploy --force diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 8876c1e..0000000 --- a/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -anguage: python - -python: - - "3.7" - -script: - - cp README.md docs/index.md - - mkdocs build - # - invoke build - -deploy: - provider: pages - local-dir: site - skip-cleanup: true - keep-history: true - github-token: $GITHUB_TOKEN - on: - branch: master diff --git a/README.md b/README.md index e6d218b..d9a0ca0 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ # Awesome DevOps [![Awesome](https://awesome.re/badge.svg)](https://awesome.re) -[![Build Status](https://travis-ci.com/wmariuss/awesome-devops.svg?branch=master)](https://travis-ci.com/wmariuss/awesome-devops) +[![Deploy](https://github.com/wmariuss/awesome-devops/actions/workflows/deploy.yml/badge.svg)](https://github.com/wmariuss/awesome-devops/actions/workflows/deploy.yml) +[![pages-build-deployment](https://github.com/wmariuss/awesome-devops/actions/workflows/pages/pages-build-deployment/badge.svg)](https://github.com/wmariuss/awesome-devops/actions/workflows/pages/pages-build-deployment) A curated list of awesome DevOps tools, technologies, platforms and resources. Things to help/grow you in *DevOps* or *SRE* area.