Skip to content

Commit ce0953b

Browse files
committed
Add deploy to heroku
1 parent 9a6b69b commit ce0953b

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "monthly"
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
on:
2+
push:
3+
jobs:
4+
deploy:
5+
concurrency: http4k-irc
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Checkout
9+
uses: actions/[email protected]
10+
- name: Setup Java
11+
uses: actions/[email protected]
12+
with:
13+
distribution: temurin
14+
java-version: 21
15+
cache: gradle
16+
- name: Setup Gradle
17+
uses: gradle/actions/setup-gradle@v4
18+
- name: Cache Gradle packages
19+
uses: actions/[email protected]
20+
with:
21+
path: |
22+
~/.gradle/caches
23+
~/.gradle/wrapper
24+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
25+
restore-keys: |
26+
${{ runner.os }}-gradle-
27+
- name: Deploy to Heroku
28+
uses: AkhileshNS/[email protected]
29+
with:
30+
heroku_api_key: ${{secrets.HEROKU_API_KEY}}
31+
heroku_app_name: http4k-irc
32+
heroku_email: ${{secrets.HEROKU_EMAIL}}
33+
- name: Cleanup Gradle Cache
34+
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
35+
# Restoring these files from a GitHub Actions cache might cause problems for future builds.
36+
run: |
37+
rm -f ~/.gradle/caches/modules-2/modules-2.lock
38+
rm -f ~/.gradle/caches/modules-2/gc.properties
39+

0 commit comments

Comments
 (0)