Skip to content

Commit

Permalink
Merge pull request #10 from sumedhsakdeo/test_tag_action
Browse files Browse the repository at this point in the history
test tag action in the single workflow
  • Loading branch information
sumedhsakdeo authored Feb 22, 2024
2 parents 2c6b3bd + e5b0533 commit 3f51755
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 62 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/build-gradle-openhouse.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/build-tag-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Gradle Build, Tag, and Publish OpenHouse

on:
push:
branches:
- main

jobs:
build-gradle-project:
name: Build tagged commit
runs-on: ubuntu-latest
steps:
- name: Checkout project sources
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.merge_commit_sha }}
fetch-depth: 0

- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
distribution: 'microsoft'
java-version: '1.8'

- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1

- name: Build with Gradle
run: ./gradlew clean build -x test # temporarily disable tests to speed up dev iteration.

- name: Bump version and push tag
if: ${{ success() }}
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true # prefix for tag "v"
DEFAULT_BUMP: patch # major, minor, patch
DRY_RUN: true # if true, will not push tag
INITIAL_VERSION: 0.5.0 # if no tags, will use this version
29 changes: 0 additions & 29 deletions .github/workflows/tag-openhouse.yml

This file was deleted.

0 comments on commit 3f51755

Please sign in to comment.