Skip to content

Commit

Permalink
Release version 5.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrouwerdigibase committed Mar 29, 2024
1 parent a41918f commit 836657d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ jobs:
- name: Update version in bt_ifcmanager.rb
if: env.IS_VALID == 'true'
run: |
sed -i "s/VERSION = '.*'/VERSION = '${{ steps.extract_version.outputs.version }}'/" src/bt_ifcmanager.rb
sed -i "s/VERSION = '.*'/VERSION = '${{ env.VERSION }}'/" src/bt_ifcmanager.rb
- name: Commit changes
if: env.IS_VALID == 'true'
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git commit -m "Update version to ${{ steps.extract_version.outputs.version }}" -a
git commit -m "Update version to ${{ env.VERSION }}" -a
- name: Push changes
if: env.IS_VALID == 'true'
Expand All @@ -51,15 +51,15 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Create RBZ file
if: steps.check_version.outputs.is_valid == 'true'
if: env.IS_VALID == 'true'
run: |
zip -r bt_ifcmanager-${{ steps.extract_version.outputs.version }}.rbz src/
zip -r bt_ifcmanager-${{ env.VERSION }}.rbz src/
- name: Generate release notes
if: env.IS_VALID == 'true'
id: generate_notes
run: |
VERSION=${{ steps.extract_version.outputs.version }}
VERSION=${{ env.VERSION }}
PREVIOUS_TAG=$(git describe --abbrev=0 --tags `git rev-list --tags --skip=1 --max-count=1`)
RELEASE_NOTES=$(git log --pretty=format:"- %s" $PREVIOUS_TAG..HEAD)
if [[ -z "$RELEASE_NOTES" ]]; then
Expand All @@ -74,8 +74,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ steps.extract_version.outputs.version }}
release_name: Sketchup-IFC-Manager ${{ steps.extract_version.outputs.version }}
tag_name: v${{ env.VERSION }}
release_name: Sketchup-IFC-Manager ${{ env.VERSION }}
body: ${{ env.RELEASE_NOTES }}
draft: true
prerelease: false
Expand All @@ -88,6 +88,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./bt_ifcmanager-${{ steps.extract_version.outputs.version }}.rbz
asset_name: bt_ifcmanager-${{ steps.extract_version.outputs.version }}.rbz
asset_path: ./bt_ifcmanager-${{ env.VERSION }}.rbz
asset_name: bt_ifcmanager-${{ env.VERSION }}.rbz
asset_content_type: application/zip

0 comments on commit 836657d

Please sign in to comment.