platform-0.8.1 #19
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: Release Charts | |
on: | |
release: | |
types: [published] | |
jobs: | |
release: | |
permissions: | |
contents: write | |
id-token: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 | |
id: app-token | |
with: | |
app-id: ${{ secrets.APP_ID }} | |
private-key: ${{ secrets.AUTOMATION_KEY }} | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
with: | |
fetch-depth: 0 | |
- name: Configure Git | |
run: | | |
git config user.name "opentdf-automation[bot]" | |
git config user.email "416599+opentdf-automation[bot]@users.noreply.github.com" | |
- id: 'download-helm' | |
shell: bash | |
working-directory: '${{ runner.temp }}' | |
env: | |
HELM_VERSION: 'v3.14.4' # v3.14.4 = April 10 2024 | |
HELM_SHA256SUM: 'a5844ef2c38ef6ddf3b5a8f7d91e7e0e8ebc39a38bb3fc8013d629c1ef29c259' | |
run: | | |
curl -sSLO "https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz" | |
echo "${HELM_SHA256SUM} helm-${HELM_VERSION}-linux-amd64.tar.gz" | sha256sum -c --quiet --strict | |
mkdir -p helm | |
tar xf "helm-${HELM_VERSION}-linux-amd64.tar.gz" -C helm | |
mkdir -p "$HOME/.local/bin" | |
mv ./helm/linux-amd64/helm "$HOME/.local/bin" | |
helm version | |
- name: Run chart-releaser | |
uses: helm/chart-releaser-action@a917fd15b20e8b64b94d9158ad54cd6345335584 | |
env: | |
CR_TOKEN: "${{ steps.app-token.outputs.token }}" | |
with: | |
skip_existing: true | |
pages_branch: main | |
pages: | |
needs: | |
- release | |
permissions: | |
pages: write | |
id-token: write | |
runs-on: ubuntu-latest | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
with: | |
fetch-depth: 0 | |
ref: main | |
- name: Upload static files as artifact | |
id: upload | |
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa | |
with: | |
path: '.' | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e |