Skip to content

Commit

Permalink
fix(doc): bump version for new docs site (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Faircloth authored Aug 21, 2021
1 parent 2b1b512 commit 7a26594
Show file tree
Hide file tree
Showing 14 changed files with 937 additions and 13 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/cd-docs-pdf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# ########################################################################
# Copyright 2021 Splunk Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ########################################################################

name: cd-docs-pdf
on:
push:
branches-ignore:
- "**"
tags:
- "v*"
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: false
- id: doc-files
name: Produce PDF from docs
run: |
sudo apt-get install -y pandoc texlive librsvg2-bin texlive-latex-extra
pandoc -s --pdf-engine=pdflatex -o /tmp/SC4S_docs.pdf $(find . -type f -name "*.md")
- name: Release
uses: softprops/action-gh-release@v1
with:
files: /tmp/SC4S_docs.pdf
62 changes: 62 additions & 0 deletions .github/workflows/cd-pages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: cd-pages-helm

on:
push:
branches-ignore:
- "**"
tags:
- "v*"

jobs:
mike:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: oleksiyrudenko/gha-git-credentials@v2-latest
with:
token: "${{ secrets.GITHUB_TOKEN }}"
- name: Upload
run: |
VERSION=$(echo $GITHUB_REF | cut -d / -f 3 | sed 's/v//')
echo $VERSION
#We only published tagged version for main
if [[ $VERSION != *"develop"* ]]; then
pip3 install poetry
poetry install
poetry run mike deploy -p -u $VERSION latest
fi
# helm:
# runs-on: ubuntu-latest
# needs: mike
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# with:
# fetch-depth: 0
# - name: Install Helm
# uses: azure/setup-helm@v1
# with:
# version: v3.6.3
# - name: Upload
# run: |
# mkdir /tmp/package
# mkdir /tmp/index
# mkdir /tmp/origin
# echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token
# VERSION=$(echo $GITHUB_REF | cut -d / -f 3)
# echo $VERSION
# wget https://splunk.github.io/splunk-connect-for-syslog/index.yaml -P /tmp/origin
# helm package charts/splunk-connect-for-syslog -d /tmp/package
# gh release upload $VERSION /tmp/package/*
# helm repo index /tmp/package --url https://github.com/splunk/splunk-connect-for-syslog/releases/download/$VERSION --merge /tmp/origin/index.yaml
# cp /tmp/package/index.yaml /tmp/index/
# - name: Deploy
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: /tmp/index
# keep_files: true
65 changes: 65 additions & 0 deletions .github/workflows/ci-main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# ########################################################################
# Copyright 2021 Splunk Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ########################################################################

name: ci-main
on:
push:
branches:
- "main"
- "develop"
pull_request:
branches:
- "main"
- "develop"
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: false
persist-credentials: false
- name: Semantic Release
id: version
uses: cycjimmy/[email protected]
with:
semantic_version: 17
extra_plugins: |
@semantic-release/exec
@semantic-release/git
semantic-release-helm
@google/semantic-release-replace-plugin
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
mike:
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/develop' }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: oleksiyrudenko/gha-git-credentials@v2-latest
with:
token: "${{ secrets.PAT_CLATOOL }}"
- name: Upload
run: |
BRANCH=$(echo $GITHUB_REF | cut -d / -f 3)
echo $BRANCH
pip3 install poetry
poetry install
poetry run mike deploy -p $BRANCH
13 changes: 0 additions & 13 deletions .github/workflows/review-secrets.yml

This file was deleted.

13 changes: 13 additions & 0 deletions .github/workflows/update-tags.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Update Semver
on:
push:
branches-ignore:
- "**"
tags:
- "v*.*.*"
jobs:
update-semver:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: haya14busa/action-update-semver@v1
130 changes: 130 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/
.vscode/settings.json
Loading

0 comments on commit 7a26594

Please sign in to comment.