File tree Expand file tree Collapse file tree 2 files changed +57
-12
lines changed Expand file tree Collapse file tree 2 files changed +57
-12
lines changed Original file line number Diff line number Diff line change 1+ name : release-tag
2+
3+ on :
4+ push :
5+ tags :
6+ - " v*.*.*"
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Checkout
13+ uses : actions/checkout@v2
14+ - name : Get the version
15+ id : get_version
16+ run : echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
17+
18+ - name : Setup Go
19+ uses : actions/setup-go@v3
20+ with :
21+ go-version : ' 1.17.11'
22+ - run : |
23+ make update-flagd
24+ go mod tidy
25+ make controller-gen
26+ IMG=ghcr.io/open-feature/open-feature-operator:${GITHUB_REF#refs/*/} make release-manifests
27+
28+ - name : Update README.md version
29+ uses : jacobtomlinson/gha-find-replace@v2
30+ with :
31+ find : " https://github\\ .com/open-feature/open-feature-operator/releases/download/v[\\ d]+\\ .[\\ d]+\\ .[\\ d]+"
32+ replace : " https://github.com/open-feature/open-feature-operator/releases/download/${{ steps.get_version.outputs.VERSION }}"
33+ regex : true
34+ include : README.md
35+
36+ - name : Commit files
37+ run : |
38+ git config --local user.email "github-actions[bot]@users.noreply.github.com"
39+ git config --local user.name "github-actions[bot]"
40+ git commit -s -m "docs: update README.md version" -a
41+
42+ - name : Push changes
43+ 44+ with :
45+ github_token : ${{ secrets.GITHUB_TOKEN }}
46+ branch : main
47+
48+ - name : Release
49+ uses : softprops/action-gh-release@v1
50+ with :
51+ files : |
52+ config/webhook/certificate.yaml
53+ config/rendered/release.yaml
54+ config/samples/end-to-end.yaml
Original file line number Diff line number Diff line change 1- name : release
1+ name : release-workflow
22
33on :
44 push :
55 branches :
6- - feature/release-workflow
7- tags :
8- - " v*.*.*"
9- env :
10- REGISTRY : ghcr.io
11- IMAGE_NAME : ${{ github.repository }}
12- FLAGD_VERSION : v0.0.3
6+ - feature/release-workflow
137
148jobs :
159 build :
1610 runs-on : ubuntu-latest
1711 steps :
1812 - name : Checkout
1913 uses : actions/checkout@v2
20- with :
21- submodules : recursive
2214 - name : Get the version
2315 id : get_version
2416 run : echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
25-
17+
2618 - uses : actions/setup-go@v3
2719 with :
2820 go-version : ' 1.17.11'
3123 go mod tidy
3224 make controller-gen
3325 IMG=ghcr.io/open-feature/open-feature-operator:${GITHUB_REF#refs/*/} make release-manifests
34-
3526 - name : Release
3627 uses : softprops/action-gh-release@v1
3728 with :
You can’t perform that action at this time.
0 commit comments