Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

News: some fixes #11

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 9 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,21 @@ on:
- completed

jobs:
prepare:
publish:
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.gettag.outputs.tag }}
body: ${{ steps.gettag.outputs.body }}
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Get tag
run: |
git fetch --tags --force
TAG=$(git tag --contains $(git rev-parse HEAD))
echo "tag=$TAG" >> "$GITHUB_OUTPUT"
echo "body=$TAG_BODY" >> "$GITHUB_OUTPUT"
id: gettag
publish:
runs-on: ubuntu-latest
permissions:
contents: write
needs: prepare
steps:
TAG_BODY=$(git tag --contains $(git rev-parse HEAD) --format='%(contents)')
echo "tag=$TAG" >> $GITHUB_ENV
echo "$TAG_BODY" > body.md
- uses: ncipollo/release-action@v1
with:
name: Release ${{needs.prepare.outputs.tag}}
tag: ${{needs.prepare.outputs.tag}}
body: ${{needs.prepare.outputs.body}}
name: Release ${{ env.tag }}
tag: ${{ env.tag }}
bodyFile: body.md
8 changes: 4 additions & 4 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

## New functions

* utility functions to calculate distance or angular distortions in some
* utility functions to calculate distance distortions in some
projection methods
* `add_wms_*()`and `add_wmts_*()` family of functions, which are shorthand
alternatives for a fully specified [leaflet::addWMSTiles()],
[leaflet.extras2::addWMS()] or
[leaflet::addTiles()] statement.
alternatives for a fully specified `leaflet::addWMSTiles()`,
`leaflet.extras2::addWMS()` or
`leaflet::addTiles()` statement.

## Enhancements

Expand Down