Skip to content

eksctl 0.169.0 (permalink) #179

eksctl 0.169.0 (permalink)

eksctl 0.169.0 (permalink) #179

Workflow file for this run

name: Publish docs
on:
release:
types: [published]
jobs:
publish-docs:
name: Publish docs to Netlify
if: ${{ !github.event.release.prerelease }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
with:
token: ${{ secrets.EKSCTLBOT_TOKEN }}
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 #v5.0.0
with:
go-version: 1.20.x
cache: false
- name: Cache go-build and mod
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 #v3.3.2
with:
path: |
~/.cache/go-build/
~/go/pkg/mod/
key: go-${{ hashFiles('go.sum') }}
restore-keys: |
go-
- name: Setup identity as eksctl-bot
uses: ./.github/actions/setup-identity
with:
token: "${{ secrets.EKSCTLBOT_TOKEN }}"
- name: Trigger Netlify deployment
run: make publish-docs
- name: slack on success
if: success()
uses: actions-ecosystem/action-slack-notifier@fc778468d09c43a6f4d1b8cccaca59766656996a #v1.1.0
with:
slack_token: ${{ secrets.WEAVEWORKS_SLACK_EKSCTLBOT_TOKEN }}
message: ":tada: Docs published successfully :tada:"
channel: team-pitch-black
color: green
verbose: true
- name: slack on failure
if: failure()
uses: actions-ecosystem/action-slack-notifier@fc778468d09c43a6f4d1b8cccaca59766656996a #v1.1.0
with:
slack_token: ${{ secrets.WEAVEWORKS_SLACK_EKSCTLBOT_TOKEN }}
message: ":ahhhhhhhhh: Docs publishing failed."
channel: team-pitch-black
color: red
verbose: true