Skip to content

Commit

Permalink
Refine release workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Fynn Späker <[email protected]>
  • Loading branch information
fynluk committed Oct 26, 2022
1 parent 5fdb9bd commit 459d3f5
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 72 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ name: go:test
on:
pull_request:
paths-ignore: 'docs/**'
push:
branches-ignore: '*/*'
paths-ignore: 'docs/**'

jobs:
test:
Expand Down
65 changes: 0 additions & 65 deletions .github/workflows/on-push-pre-release.yml

This file was deleted.

30 changes: 26 additions & 4 deletions .github/workflows/on-release-publish.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,33 @@
name: go:publish
name: go:release

on:
release:
types: [ released ]
workflow_dispatch:
push:
tags: 'v*'

jobs:
create-release:
runs-on: ubuntu-latest

steps:
- name: Checkout commit
uses: actions/checkout@v2
- name: Update VERSION file
run: |-
echo "${{ github.ref_name }}" > VERSION
- name: Create controller-registration.yaml
run: |-
vendor/github.com/gardener/gardener/hack/generate-controller-registration.sh provider-hcloud charts/gardener-extension-provider-hcloud ${{ github.ref_name }} controller-registration.yaml \
ControlPlane:hcloud Infrastructure:hcloud Worker:hcloud
- name: Create Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
body: |-
# [gardener-extension-provider-hcloud] ${{ github.ref_name }}
files: |-
controller-registration.yaml
go-publish:
runs-on: ubuntu-latest
strategy:
Expand Down

0 comments on commit 459d3f5

Please sign in to comment.