Skip to content

Commit 9c21804

Browse files
committed
fixes issue with jpg file path
1 parent 7891a9c commit 9c21804

File tree

3 files changed

+16
-11
lines changed

3 files changed

+16
-11
lines changed

.github/workflows/gradle-publish.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ jobs:
2121

2222
steps:
2323
- uses: actions/checkout@v3
24-
24+
with:
25+
path: branch
26+
2527
- name: Set up JDK 17
2628
uses: actions/setup-java@v3
2729
with:
@@ -35,16 +37,19 @@ jobs:
3537
with:
3638
ref: site
3739
path: output
40+
token: ${{ secrets.PUSH_TOKEN }}
3841

3942
- name: Setup Gradle
4043
uses: gradle/gradle-build-action@v2
41-
with:
42-
arguments: run --args="--output ./output/docs"
4344

44-
- name: Push output branch
45-
working-directory: ./output
45+
- name: Gradle Build and Run
46+
working-directory: ./branch
4647
run: |
47-
git config user.name 'Sergey Savelyev'
48-
git config user.email 'SergeySave@users.noreply.github.com'
49-
git commit -m "Automated Website Build"
50-
git push
48+
./gradlew run --args="--output ../output/docs"
49+
50+
- name: Commit and Push changes
51+
uses: EndBug/add-and-commit@v9
52+
with:
53+
cwd: ./output
54+
default_author: github_actions
55+
message: 'Automated Build'

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ repositories {
2727
}
2828

2929
dependencies {
30-
implementation("com.sergeysav:website-generator:1.0.0")
30+
implementation("com.sergeysav:website-generator:1.0.1")
3131
api("org.jetbrains.kotlinx:kotlinx-html-jvm:0.7.3")
3232
api("org.jetbrains.kotlin-wrappers:kotlin-css:1.0.0-pre.312-kotlin-1.6.10")
3333
implementation(kotlin("reflect"))

src/main/kotlin/com/sergeysav/pages/AboutMe.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ object AboutMe : BaseResource("/") {
5858
width = 300.px
5959
borderRadius = 150.px
6060
}
61-
this.src = getResourcePath(StaticResource("Me2019_Square_NoEXIF.JPG", "me.jpg"))
61+
this.src = getResourcePath(StaticResource("Me2019_Square_NoEXIF.jpg", "me.jpg"))
6262
this.alt = "A picture of Sergey Savelyev"
6363
}
6464
}

0 commit comments

Comments
 (0)