Skip to content

Commit

Permalink
Revert "Remove unused Workflows"
Browse files Browse the repository at this point in the history
This reverts commit 373a0aa.
  • Loading branch information
rachfop committed Jan 8, 2024
1 parent 7770d9a commit 4e65d19
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/create-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Create Version 🦉

on:
create:
# Triggered when a branch or tag is created

jobs:
rdme-docs:
runs-on: ubuntu-latest
steps:
- name: Check out repo 📚
uses: actions/checkout@v3

- name: Generate branch version string
run: |
BRANCH_VERSION="${{ github.ref }}"
echo "BRANCH_VERSION=$BRANCH_VERSION" >> $GITHUB_ENV
- name: Create version of docs for branch 🚀
uses: readmeio/rdme@v8
with:
rdme: versions:create v1.0-${{ env.BRANCH_VERSION }} --key=${{ secrets.README_API_KEY }} --fork=1.0 --main=false --beta=true --deprecated=false --isPublic=false
23 changes: 23 additions & 0 deletions .github/workflows/delete-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Delete Version 🦉


on:
pull_request:
types: [ closed ]

jobs:
rdme-docs:
runs-on: ubuntu-latest
steps:
- name: Check out repo 📚
uses: actions/checkout@v3

- name: Generate branch version string
run: |
BRANCH_VERSION="${{ github.ref }}"
echo "BRANCH_VERSION=$BRANCH_VERSION" >> $GITHUB_ENV
- name: Delete version of docs for branch (if branch is deleted) 🚀
uses: readmeio/rdme@v8
with:
rdme: versions:delete v1.0-${{ env.BRANCH_VERSION }}--key=${{ secrets.README_API_KEY }}
25 changes: 25 additions & 0 deletions .github/workflows/update-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Update ReadMe Docs on Push

on: [push]

jobs:
rdme-docs:
runs-on: ubuntu-latest
steps:
- name: Check out repo 📚
uses: actions/checkout@v3

- name: Generate branch version string
run: |
BRANCH_VERSION="${{ github.ref }}"
echo "BRANCH_VERSION=$BRANCH_VERSION" >> $GITHUB_ENV
- name: DryRun for debugging
uses: readmeio/rdme@v8
with:
rdme: docs v1.0 --key=${{ secrets.README_API_KEY }} --version=${{ env.BRANCH_VERSION }} --dryRun

- name: Update version of docs for branch 🚀
uses: readmeio/rdme@v8
with:
rdme: docs v1.0 --key=${{ secrets.README_API_KEY }} --version=${{ env.BRANCH_VERSION }}

0 comments on commit 4e65d19

Please sign in to comment.