Skip to content

Commit

Permalink
Merge branch 'release/1.4.0' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
titouanmathis committed Dec 11, 2020
2 parents f081101 + dbbcc9c commit 99b7ef8
Show file tree
Hide file tree
Showing 38 changed files with 3,341 additions and 864 deletions.
76 changes: 76 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Release

on:
push:
tags:
- '*.*.*'

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/

- run: npm ci
- run: npm run build
- run: npm test

# @see https://github.com/actions/create-release/issues/38#issuecomment-715327220
# @see https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#environment-files
- name: Prepare the changelog from the tag message
id: prepare_changelog
run: |
# Parse version
VERSION=${GITHUB_REF/refs\/tags\//}
echo "Setting release version to $VERSION"
echo "release_version=$VERSION" >> $GITHUB_ENV
# Parse tag message
CHANGELOG=$(git show $GITHUB_REF | tail -n+7)
echo $CHANGELOG
# Set markdown titles
CHANGELOG=${CHANGELOG/Added/## Added}
CHANGELOG=${CHANGELOG/Fixed/## Fixed}
CHANGELOG=${CHANGELOG/Changed/## Changed}
CHANGELOG=${CHANGELOG/Removed/## Removed}
CHANGELOG=${CHANGELOG/Deprecated/## Deprecated}
CHANGELOG=${CHANGELOG/Security/## Security}
echo $CHANGELOG
# Remove PGP signature
CHANGELOG="${CHANGELOG%-----BEGIN*}"
echo $CHANGELOG
# Change linebreaks and other special characters
CHANGELOG="${CHANGELOG//'%'/'%25'}"
CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"
CHANGELOG="${CHANGELOG//$'\r'/'%0D'}"
echo "Setting changelog body to:"
echo $CHANGELOG
echo 'changelog<<EOF' >> $GITHUB_ENV
echo $CHANGELOG >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
# @see https://github.com/actions/create-release
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: v${{ env.release_version }}
body: ${{ env.changelog }}
draft: false
prerelease: false
3 changes: 2 additions & 1 deletion dist/VueMapboxGl.cjs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/VueMapboxGl.cjs.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/VueMapboxGl.esm.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/VueMapboxGl.esm.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/VueMapboxGl.umd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/VueMapboxGl.umd.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/VueMapboxGl.umd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/VueMapboxGl.umd.min.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 99b7ef8

Please sign in to comment.