Skip to content

Commit

Permalink
Merge branch 'hotfix/3.1.0-alpha.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
titouanmathis committed Dec 23, 2021
2 parents 48227b5 + 359f766 commit a849332
Show file tree
Hide file tree
Showing 7 changed files with 3,899 additions and 151 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,20 @@ jobs:
echo "Setting release version to $VERSION"
echo "release_version=$VERSION" >> $GITHUB_ENV
# Parse tag message
CHANGELOG=$(git for-each-ref $GITHUB_REF | tail -n+3)
echo "$GITHUB_REF"
echo "$GITHUB_REF_NAME"
echo $CHANGELOG
PRERELEASE=false
# Check release type
if [[ $VERSION =~ 'alpha' || $VERSION =~ 'beta' ]]; then
echo "This is a prerelease."
PRERELEASE=true
fi
echo "is_prerelease=$PRERELEASE" >> $GITHUB_ENV
git show $GITHUB_REF
CHANGELOG=$(git show $GITHUB_REF | tail -n+7)
# Set markdown titles
CHANGELOG=${CHANGELOG/Added/## Added}
Expand All @@ -52,19 +62,16 @@ jobs:
CHANGELOG=${CHANGELOG/Deprecated/## Deprecated}
CHANGELOG=${CHANGELOG/Security/## Security}
echo $CHANGELOG
# Remove PGP signature
CHANGELOG="${CHANGELOG%-----BEGIN*}"
echo $CHANGELOG
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
Expand All @@ -82,4 +89,4 @@ jobs:
release_name: v${{ env.release_version }}
body: ${{ env.changelog }}
draft: false
prerelease: false
prerelease: ${{ env.is_prerelease }}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ And set up your project with the following folder structure:
```
meta.config.js
package.json
public/ --> public assets, served from `/`
...
src/
css/ --> css files
Expand Down
Loading

0 comments on commit a849332

Please sign in to comment.