File tree Expand file tree Collapse file tree 2 files changed +21
-7
lines changed Expand file tree Collapse file tree 2 files changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,23 @@ concurrency:
18
18
cancel-in-progress : true
19
19
20
20
jobs :
21
+ test : # todo: remove this
22
+ runs-on : ubuntu-latest
23
+ steps :
24
+ - name : Create simple file
25
+ run : echo "Hello, world!" > hello.txt
26
+
27
+ - name : Upload artifact
28
+ uses : actions/upload-artifact@v4
29
+ with :
30
+ name : hello
31
+ path : hello.txt
32
+
21
33
call-jekyll-build :
34
+ needs : test # todo: remove this
22
35
uses : ./.github/workflows/jekyll-build.yml
23
36
with :
24
- site_source : ' . '
37
+ site_artifact : hello # todo: remove this
25
38
target_branch : gh-pages
26
39
clean_gh_pages : true
27
40
secrets :
Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ name: Build Jekyll
4
4
on :
5
5
workflow_call :
6
6
inputs :
7
- site_source :
8
- description : ' Directory where the site source files are located '
7
+ site_artifact :
8
+ description : ' Artifact name to download '
9
9
required : false
10
- default : ' . '
10
+ default : ' '
11
11
type : string
12
12
config_file :
13
13
description : ' Configuration file to use, relative to the site source directory'
54
54
path : theme
55
55
56
56
- name : Checkout project
57
- if : ${{ github.repository != 'LizardByte/LizardByte.github.io ' }}
58
- uses : actions/checkout @v4
57
+ if : ${{ inputs.site_artifact != '' }}
58
+ uses : actions/download-artifact @v4
59
59
with :
60
+ name : ${{ inputs.site_artifact }}
60
61
path : project
61
62
62
63
- name : Setup project
@@ -102,7 +103,7 @@ jobs:
102
103
done
103
104
104
105
# copy project directory, they should only come from the project repo
105
- cp -RTf ./project/${{ inputs.site_source }}/ ${TMPDIR}/
106
+ cp -RTf ./project/ ${TMPDIR}/
106
107
107
108
# remove the workspace
108
109
cd ..
You can’t perform that action at this time.
0 commit comments