Skip to content

Commit

Permalink
1.0.7 staging (#133)
Browse files Browse the repository at this point in the history
* rename workflow jobs, make test only run on PRs (#128)

* Added a workflow to run on tag creation

* don't need to create a release because that's how we'll be creating tags

* Update the tag workflow to prepend the changelog to the CHANGELOG.md file

* Create CHANGELOG.md

* chore: Update CHANGELOG.md

* added a trigger for tag so that initial dev deploy is run on tag

* chore: Update CHANGELOG.md

* fix syntax

* added excludes for the changelog

* still trying at triggering on tags

* chore: Update CHANGELOG.md

* Added semver override to fix zero version issue

* forgot to define semver

* chore: Update CHANGELOG.md

* rename workflow jobs, make test only run on PRs (#128) (#129) (#132)

---------

Co-authored-by: compscidr <[email protected]>
  • Loading branch information
compscidr and compscidr authored Jun 16, 2023
1 parent 2cb5fed commit 3cc7069
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/publish-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- main
# triggers on tag creation
create:

jobs:
deploy-dev:
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Create Release

on:
push:
tags:
- '*'

jobs:
create-release:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Create changelog text
id: changelog
uses: loopwerk/tag-changelog@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
exclude: other,doc,chore,build

# based off example here: https://github.com/loopwerk/tag-changelog/commit/20ca6a4b3f21b7feade68bea88f5cce5bbbdc4b7
- name: Read CHANGELOG.md
id: readfile
uses: juliangruber/read-file-action@v1
with:
path: ./CHANGELOG.md

- name: Write to CHANGELOG.md
uses: DamianReeves/write-file-action@master
with:
path: ./CHANGELOG.md
contents: ${{ steps.changelog.outputs.changelog }}${{ steps.readfile.outputs.content }}
write-mode: overwrite

- name: Commit and push CHANGELOG.md
uses: EndBug/add-and-commit@v7
with:
add: CHANGELOG.md
message: "chore: Update CHANGELOG.md"
branch: main
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# 1.0.7 - 2023-06-16

## Chores
- Update CHANGELOG.md

## Other Changes
- Added semver override to fix zero version issue
- forgot to define semver

# 1.0.6 - 2023-06-16

## Chores
- Update CHANGELOG.md

## Other Changes
- fix syntax
- Merge branch 'main' of github.com:compscidr/hello-kotlin-android
- added excludes for the changelog
- still trying at triggering on tags

# 1.0.5 - 2023-06-16

## Chores
- Update CHANGELOG.md

## Other Changes
- added a trigger for tag so that initial dev deploy is run on tag
- Merge branch 'main' of github.com:compscidr/hello-kotlin-android

# 1.0.4 - 2023-06-16

## Other Changes
- Create CHANGELOG.md
5 changes: 4 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,12 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
}

// https://github.com/ReactiveCircus/app-versioning
import io.github.reactivecircus.appversioning.SemVer

appVersioning {
overrideVersionCode { gitTag, providers, variantInfo ->
gitTag.commitsSinceLatestTag
def semVer = SemVer.fromGitTag(gitTag)
semVer.major * 2000000 + semVer.minor * 20000 + semVer.patch * 200 + gitTag.commitsSinceLatestTag
}
}

Expand Down

0 comments on commit 3cc7069

Please sign in to comment.