File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -39,10 +39,15 @@ jobs:
39
39
- name : Build with Middleman
40
40
run : |
41
41
mkdir -p __build
42
- BUILD_OUTPUT="__build" bundle exec middleman build
43
- - name : Upload result
44
- uses : actions/upload-artifact@v4
45
- with :
46
- name : build-${{ github.event.number }}
47
- path : ' __build/**/*'
48
- retention-days : 30
42
+ - name : Setup preview
43
+ env :
44
+ www_path : ' pr-${{ github.event.number }}'
45
+ run : |
46
+ mkdir -p __preview
47
+ git clone https://github.com/rspec/preview --depth 1 --branch main __preview
48
+ mkdir -p '__preview/${{ env.www_path }}'
49
+ cp -R __build/ '__preview/${{ env.www_path }}'
50
+ cd __preview/
51
+ git add '${{ env.www_path }}/*'
52
+ git ci -m 'PR build ${{ github.event.number }} - ${{ github.job }}'
53
+ git push origin main
You can’t perform that action at this time.
0 commit comments