File tree 1 file changed +13
-8
lines changed
1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -35,14 +35,19 @@ jobs:
35
35
- name : Install dependencies
36
36
run : |
37
37
bundle config set --local path '.bundle/gems'
38
- bundle install
39
38
- name : Build with Middleman
40
39
run : |
41
40
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
41
+ - name : Setup preview
42
+ env :
43
+ www_path : ' pr-${{ github.event.number }}'
44
+ run : |
45
+ mkdir -p __preview
46
+ git clone https://github.com/rspec/preview --depth 1 --branch main __preview
47
+ mkdir -p '__preview/${{ env.www_path }}'
48
+ cp -R __build/ '__preview/${{ env.www_path }}'
49
+ cd __preview/
50
+ git add '${{ env.www_path }}/*'
51
+ git config user.name "RSpec Bot 9000"
52
+ git commit -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