Skip to content

Merge pull request #46 from PaloAltoNetworks/task-autopilot-support #55

Merge pull request #46 from PaloAltoNetworks/task-autopilot-support

Merge pull request #46 from PaloAltoNetworks/task-autopilot-support #55

Workflow file for this run

name: Release Tag
on:
push:
tags:
- "v*.*.*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Set up Helm
uses: azure/setup-helm@18bc76811624f360dbd7f18c2d4ecb32c7b87bab # v1
with:
version: v3.8.1
- name: Create Helm package
run: helm package ./charts/cortex-agent
- name: Create new release
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1
with:
files: ./cortex-xdr*.tgz
- name: Commit new index.yaml
run: |
git fetch origin
git checkout origin/gh-pages
git checkout -b gh-pages
helm repo index . --url https://github.com/${{ github.repository }}/releases/download/${GITHUB_REF#refs/tags/} --merge index.yaml
git add index.yaml
git commit -m "Update index.yaml to contain latest release: ${GITHUB_REF#refs/tags/}"
git push origin gh-pages