Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jhagestedt authored May 7, 2021
1 parent 56541ac commit 90ebdb4
Show file tree
Hide file tree
Showing 4 changed files with 127 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci-release-notes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: ci-release-notes
on:
release:
types:
- created
jobs:
release-notes:
runs-on: ubuntu-20.04
env:
APP_VERSION: ${{ github.event.release.tag_name }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: release-notes
run: npx github-release-notes release --override --tags ${APP_VERSION}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GREN_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41 changes: 41 additions & 0 deletions .github/workflows/ci-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: ci-release
on:
release:
types:
- created
jobs:
build:
runs-on: ubuntu-20.04
env:
APP_VERSION: ${{ github.event.release.tag_name }}
steps:
- uses: actions/checkout@v2
with:
repository: eu-digital-green-certificates/dgca-app-core-android
ref: main
path: dgca-app-core-android
- uses: actions/checkout@v2
with:
path: dgca-verifier-app-android
- uses: actions/setup-java@v1
with:
java-version: 1.8
distribution: adopt
- uses: android-actions/setup-android@v2
- uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
- name: build
run: |-
cd ./dgca-verifier-app-android
./gradlew --no-daemon build
- name: assets
run: |-
gh release upload ${APP_VERSION} \
--clobber \
./dgca-verifier-app-android/app/build/outputs/apk/release/app-release-unsigned.apk#app-release-unsigned-${APP_VERSION}.apk
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: ci
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
repository: eu-digital-green-certificates/dgca-app-core-android
ref: main
path: dgca-app-core-android
- uses: actions/checkout@v2
with:
path: dgca-verifier-app-android
- uses: actions/setup-java@v1
with:
java-version: 1.8
distribution: adopt
- uses: android-actions/setup-android@v2
- uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
- name: build
run: |-
cd ./dgca-verifier-app-android
./gradlew --no-daemon build
30 changes: 30 additions & 0 deletions .grenrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
module.exports = {
"dataSource": "prs",
"prefix": "",
"onlyMilestones": false,
"groupBy": {
"Enhancements": [
"enhancement",
"internal"
],
"Bug Fixes": [
"bug"
],
"Documentation": [
"documentation"
],
"Others": [
"other"
]
},
"changelogFilename": "CHANGELOG.md",
"template": {
commit: ({ message, url, author, name }) => `- [${message}](${url}) - ${author ? `@${author}` : name}`,
issue: "- {{name}} [{{text}}]({{url}})",
noLabel: "other",
group: "\n#### {{heading}}\n",
changelogTitle: "# Changelog\n\n",
release: "## {{release}} ({{date}})\n{{body}}",
releaseSeparator: "\n---\n\n"
}
}

0 comments on commit 90ebdb4

Please sign in to comment.