From f6bcd1584d6574e257dd10d001accf069eb6fd90 Mon Sep 17 00:00:00 2001 From: Kye Date: Fri, 6 Oct 2023 22:05:09 -0400 Subject: [PATCH] .github workflows --- .github/workflows/docs.yml | 19 +++++++++++++++++++ .github/workflows/pull-request-links.yml | 18 ++++++++++++++++++ .github/workflows/welcome.yml | 18 ++++++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 .github/workflows/docs.yml create mode 100644 .github/workflows/pull-request-links.yml create mode 100644 .github/workflows/welcome.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 00000000..a7e64a06 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,19 @@ +name: Docs WorkFlow + +on: + push: + branches: + - master + - main + - develop +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: 3.x + - run: pip install mkdocs-material + - run: pip install "mkdocstrings[python]" + - run: mkdocs gh-deploy --force \ No newline at end of file diff --git a/.github/workflows/pull-request-links.yml b/.github/workflows/pull-request-links.yml new file mode 100644 index 00000000..208fad31 --- /dev/null +++ b/.github/workflows/pull-request-links.yml @@ -0,0 +1,18 @@ +name: readthedocs/actions +on: + pull_request_target: + types: + - opened + paths: + - "docs/**" + +permissions: + pull-requests: write + +jobs: + pull-request-links: + runs-on: ubuntu-latest + steps: + - uses: readthedocs/actions/preview@v1 + with: + project-slug: zeta \ No newline at end of file diff --git a/.github/workflows/welcome.yml b/.github/workflows/welcome.yml new file mode 100644 index 00000000..a993236c --- /dev/null +++ b/.github/workflows/welcome.yml @@ -0,0 +1,18 @@ +name: Welcome WorkFlow + +on: + issues: + types: [opened] + pull_request_target: + types: [opened] + +jobs: + build: + name: 👋 Welcome + runs-on: ubuntu-latest + steps: + - uses: actions/first-interaction@v1.1.1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + issue-message: "Hello there, thank you for opening an Issue ! 🙏🏻 The team was notified and they will get back to you asap." + pr-message: "Hello there, thank you for opening an PR ! 🙏🏻 The team was notified and they will get back to you asap." \ No newline at end of file