diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml deleted file mode 100644 index 78120798..00000000 --- a/.github/release-drafter.yml +++ /dev/null @@ -1,2 +0,0 @@ -template: | - $CHANGES diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml deleted file mode 100644 index f114158a..00000000 --- a/.github/workflows/release-drafter.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: release-drafter - -on: - push: - branches: - - main - -permissions: - contents: read - -jobs: - update: - permissions: - contents: write - runs-on: ubuntu-latest - steps: - - uses: release-drafter/release-drafter@v5 - with: - disable-autolabeler: True - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b79ee495..d4719c24 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,6 +4,7 @@ name: test on: push: branches-ignore: [debian] + tags: ['*'] pull_request: workflow_dispatch: @@ -72,3 +73,28 @@ 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-22.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@v1 + 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