Skip to content

Commit

Permalink
chore: Separate release from testing
Browse files Browse the repository at this point in the history
Release the tag if a test fails, for example, because of an upstream,
network, or Rails issue.
  • Loading branch information
jgraichen committed Jan 17, 2025
1 parent a6986ad commit 942f6aa
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 25 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: test

on:
push:
tags: ['v*']
workflow_dispatch:

jobs:
release:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@master
- run: git archive --worktree-attributes --format tar.gz -9 --prefix redmine_dashboard/ "${GITHUB_REF_NAME}" > "redmine-dashboard_${GITHUB_REF_NAME}.tar.gz"
- uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
draft: true
discussion_category_name: Announcements
generate_release_notes: true
body: |
---
### Looking for testers!
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!
files: |
redmine-dashboard_*.tar.gz
25 changes: 0 additions & 25 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,28 +83,3 @@ jobs:
bundler-cache: True

- run: bundle exec rubocop --fail-level E --extra-details --display-time --color

release:
if: startsWith(github.ref, 'refs/tags/v')
needs:
- test
- rubocop
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@master
- run: git archive --worktree-attributes --format tar.gz -9 --prefix redmine_dashboard/ "${GITHUB_REF_NAME}" > "redmine-dashboard_${GITHUB_REF_NAME}.tar.gz"
- uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
draft: true
discussion_category_name: Announcements
generate_release_notes: true
body: |
---
### Looking for testers!
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!
files: |
redmine-dashboard_*.tar.gz

0 comments on commit 942f6aa

Please # to comment.