Skip to content

Added Geoserver to incore-auth #59

Added Geoserver to incore-auth

Added Geoserver to incore-auth #59

Workflow file for this run

name: Create Release
on:
push:
branches:
- main
pull_request:
env:
MAIN_REPO: IN-CORE/incore-auth
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: get release info
id: release_info
run: |
version="$(awk '/^# \[/ { print $2; exit }' CHANGELOG.md | sed -e 's/\[//' -e 's/\]//')"
changelog="$(sed -e "1,/^# \[${version}\]/d" -e "/^# /,\$d" -e '/^$/d' CHANGELOG.md)"
changelog="${changelog//'%'/'%25'}"
changelog="${changelog//$'\n'/'%0A'}"
changelog="${changelog//$'\r'/'%0D'}"
echo "version=$version" >> $GITHUB_OUTPUT
echo "changelog=$changelog" >> $GITHUB_OUTPUT
- name: create release
if: github.event_name != 'pull_request' && github.repository == env.MAIN_REPO
uses: actions/create-release@v1
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.release_info.outputs.version }}
release_name: Release ${{ steps.release_info.outputs.version }}
body: ${{ steps.release_info.outputs.changelog }}