Skip to content

Commit

Permalink
Merge branch 'master' of github.com:SaptarshiSarkar12/Drifty into 280…
Browse files Browse the repository at this point in the history
…-add-splash-screen
  • Loading branch information
SaptarshiSarkar12 committed Dec 29, 2023
2 parents 4878c7a + ab51d12 commit 0f163f1
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- "*.txt"
pull_request:
paths-ignore:
- "Website/**"
- "Website/**"
- "*.md"
- "*.txt"
workflow_dispatch:
Expand Down Expand Up @@ -115,17 +115,17 @@ jobs:
with:
name: ${{ matrix.os }}-${{ matrix.mode }}-Build-Files
path: ${{ matrix.os }}-${{ matrix.mode }}.tar

generate-metadata-and-create-release:
name: Artifacts Metadata & Release
runs-on: ubuntu-latest
needs: build-Drifty
steps:
- uses: actions/checkout@v4
- name: Get Drifty version from .version file
- name: Get Drifty version from version.json file
run: echo "VERSION=$(jq .version version.json | sed -r 's/"//g')" >> $GITHUB_ENV
- name: Set Drifty version in pom.xml
run: mvn versions:set -DnewVersion=$VERSION
run: mvn versions:set -D newVersion=$VERSION -D generateBackupPoms=false
- name: Download Build artifacts
uses: actions/download-artifact@v4
- name: Make OS specific build directories
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Bump Project Version

on:
workflow_dispatch:
inputs:
new_version:
description: 'New version to bump to'
required: true
type: string

jobs:
bump-version:
name: Bump Project Version
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v4
- name: Bump Project Version
run: |
mvn versions:set -D newVersion=${{ inputs.new_version }} -D generateBackupPoms=false
sed -i 's/"version": "[0-9].[0-9].[0-9]"/"version": "${{ inputs.new_version }}"/g' version.json
- name: Commit Version Bump
run: |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git add .
if [[ $(git status --porcelain) ]]; then
git commit -m "chore: Bump project version to ${{ inputs.new_version }}"
fi
- name: Push new version
run: git push

0 comments on commit 0f163f1

Please sign in to comment.