chore(release): 3.32.0 #261
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v4 | |
with: | |
fetch-depth: 0 | |
- uses: oleksiyrudenko/[email protected] | |
with: | |
token: "${{ secrets.GITHUB_TOKEN }}" | |
- uses: actions/setup-python@v5 | |
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 -p $VERSION | |
helm: | |
runs-on: ubuntu-latest | |
needs: mike | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install Helm | |
uses: azure/setup-helm@v4 | |
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@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: /tmp/index | |
keep_files: true |