Skip to content

chore(release): 3.2.0 #204

chore(release): 3.2.0

chore(release): 3.2.0 #204

Workflow file for this run

name: cd-pages-helm
on:
push:
branches-ignore:
- "**"
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
permissions:
contents: write
actions: read
pages: write
packages: write
deployments: write
jobs:
mike:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: oleksiyrudenko/[email protected]
with:
token: "${{ secrets.GITHUB_TOKEN }}"
- uses: actions/setup-python@v4
with:
python-version: '3.9' # Version range or exact version of a Python version to use, using SemVer's version range syntax
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
- name: Upload
run: |
VERSION=$(echo $GITHUB_REF | cut -d / -f 3 | sed 's/v//')
echo $VERSION
pip3 install poetry
poetry install
poetry run mike deploy --rebase -p $VERSION
helm:
runs-on: ubuntu-latest
needs: mike
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Helm
uses: azure/setup-helm@v3
with:
version: v3.11.2
- 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