Skip to content

Commit 942f6aa

Browse files
committed
chore: Separate release from testing
Release the tag if a test fails, for example, because of an upstream, network, or Rails issue.
1 parent a6986ad commit 942f6aa

File tree

2 files changed

+29
-25
lines changed

2 files changed

+29
-25
lines changed

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: test
3+
4+
on:
5+
push:
6+
tags: ['v*']
7+
workflow_dispatch:
8+
9+
jobs:
10+
release:
11+
runs-on: ubuntu-24.04
12+
steps:
13+
- uses: actions/checkout@master
14+
- run: git archive --worktree-attributes --format tar.gz -9 --prefix redmine_dashboard/ "${GITHUB_REF_NAME}" > "redmine-dashboard_${GITHUB_REF_NAME}.tar.gz"
15+
- uses: softprops/action-gh-release@v2
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
with:
19+
draft: true
20+
discussion_category_name: Announcements
21+
generate_release_notes: true
22+
body: |
23+
---
24+
25+
### Looking for testers!
26+
27+
Unfortunately, I do not have access to any larger Redmine project anymore, nor am I using Redmine anywhere anymore. I can only test with some artificially constructed local project that cannot represent any real project or usage. I would really appreciate if you can test ${{ github.ref_name }} in your project or organization and report any findings (or their absence). Thank you!
28+
files: |
29+
redmine-dashboard_*.tar.gz

.github/workflows/test.yml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -83,28 +83,3 @@ jobs:
8383
bundler-cache: True
8484

8585
- run: bundle exec rubocop --fail-level E --extra-details --display-time --color
86-
87-
release:
88-
if: startsWith(github.ref, 'refs/tags/v')
89-
needs:
90-
- test
91-
- rubocop
92-
runs-on: ubuntu-24.04
93-
steps:
94-
- uses: actions/checkout@master
95-
- run: git archive --worktree-attributes --format tar.gz -9 --prefix redmine_dashboard/ "${GITHUB_REF_NAME}" > "redmine-dashboard_${GITHUB_REF_NAME}.tar.gz"
96-
- uses: softprops/action-gh-release@v2
97-
env:
98-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
99-
with:
100-
draft: true
101-
discussion_category_name: Announcements
102-
generate_release_notes: true
103-
body: |
104-
---
105-
106-
### Looking for testers!
107-
108-
Unfortunately, I do not have access to any larger Redmine project anymore, nor am I using Redmine anywhere anymore. I can only test with some artificially constructed local project that cannot represent any real project or usage. I would really appreciate if you can test ${{ github.ref_name }} in your project or organization and report any findings (or their absence). Thank you!
109-
files: |
110-
redmine-dashboard_*.tar.gz

0 commit comments

Comments
 (0)