Skip to content

Commit 8f2b0a4

Browse files
committed
Stop using workflow_run, merge release into same workflow
`workflow_run` sucks - doesn't show on commits/branch. Why? Seems GitHub wants you merging all jobs into one massive yml file.
1 parent 112ccd4 commit 8f2b0a4

File tree

3 files changed

+20
-32
lines changed

3 files changed

+20
-32
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,23 @@ jobs:
9494
github_token: ${{ secrets.GITHUB_TOKEN }}
9595
publish_branch: gh-pages
9696
publish_dir: ./build
97+
98+
release:
99+
needs: deploy
100+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
101+
runs-on: ubuntu-latest
102+
steps:
103+
- name: Checkout code
104+
uses: actions/checkout@v3
105+
with:
106+
fetch-depth: 0
107+
108+
- name: Bump version
109+
id: version
110+
uses: paulhatch/[email protected]
111+
112+
- name: Create GitHub tag and release
113+
uses: softprops/[email protected]
114+
with:
115+
tag_name: ${{ steps.version.outputs.version_tag }}
116+
generate_release_notes: true

.github/workflows/release.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# react-template
22

33
[![build](https://github.com/will-molloy/react-template/workflows/build/badge.svg?event=push)](https://github.com/will-molloy/react-template/actions?query=workflow%3Abuild)
4-
[![release](https://github.com/will-molloy/react-template/workflows/release/badge.svg?event=push)](https://github.com/will-molloy/react-template/actions?query=workflow%3Arelease)
54
[![codecov](https://codecov.io/gh/will-molloy/react-template/branch/main/graph/badge.svg)](https://codecov.io/gh/will-molloy/react-template)
65

76
template repository for React projects

0 commit comments

Comments
 (0)