Skip to content

Commit

Permalink
add cran-comments and use use_github_release
Browse files Browse the repository at this point in the history
  • Loading branch information
Ellpeck committed Aug 5, 2024
1 parent d90c072 commit af80122
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.github
^cran-comments\.md$
10 changes: 2 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,12 @@ jobs:
fi
Rscript -e "usethis::use_version(\"$step\", push = TRUE)"
new_version=$(sed -n -E "s/Version: (.*)/\1/p" DESCRIPTION)
echo "::set-output name=release_tag::$new_version"
env:
# putting the message into an env variable first sanitizes it
MESSAGE: ${{ github.event.head_commit.message }}

- name: CRAN Release
run: Rscript -e 'devtools::release()'
run: Rscript -e 'devtools::submit_cran()'

- name: GitHub release
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.RELEASE_TOKEN }}
tag_name: ${{ steps.version.outputs.release_tag }}
run: Rscript -e 'use_github_release()'
5 changes: 5 additions & 0 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## R CMD check results

0 errors | 0 warnings | 1 note

* This is a new release.

0 comments on commit af80122

Please sign in to comment.