Skip to content

Release v1.27.16

Release v1.27.16 #10

Workflow file for this run

name: Release When Tagged
run-name: Release ${{ github.ref_name }}
on:
push:
tags: '*'
jobs:
validate:
runs-on: ubuntu-latest
container:
image: rancher/dapper:v0.6.0
permissions:
contents: read
steps:
- name: Check For Alpha / RC in Release
if: contains(github.ref_name, 'rc') || contains(github.ref_name, 'alpha')
uses: actions/github-script@v7
with:
script: |
core.setFailed('No RCs or Alphas are released in this repo. Skipping release...')
- name: Fix the not-a-git-repository issue
run: |
apk -U add git
git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Checkout code
uses: actions/checkout@v4
- name: build with Dapper
run: dapper ci
- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
name: kubernetes-build
path: output/bin
if-no-files-found: error
overwrite: true
create-release:
runs-on: ubuntu-latest
needs:
- validate
permissions:
contents: write # needed for creating the GH release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download assets
uses: actions/download-artifact@v4
- name: Create GH Release
run: |
gh release create ${{ github.ref_name }} --verify-tag --generate-notes kubernetes-build/*