Bump version to 2.2.10 #52
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
tags: | |
- "389-ds-base-*" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: quay.io/389ds/ci-images:test | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Check if the tagged commit belongs to a valid branch | |
run: | | |
git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
COMMIT=$(git rev-parse HEAD) | |
BRANCHES=$(git branch -a --contains $COMMIT | grep -v 'HEAD detached at') | |
if [ -n "$BRANCHES" ]; then | |
echo "Tagged commit $COMMIT belongs to the following branch(es):" | |
echo "$BRANCHES" | |
else | |
echo "Tagged commit $COMMIT does not belong to any branch." | |
exit 1 | |
fi | |
- name: Create tarball | |
run: TAG=${{ github.ref_name}} make -f rpm.mk dist-bz2 | |
- name: Upload tarball | |
uses: actions/upload-artifact@v2 | |
with: | |
name: ${{ github.ref_name}}.tar.bz2 | |
path: ${{ github.ref_name}}.tar.bz2 | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
${{ github.ref_name}}.tar.bz2 |