We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6d8573 commit 015cca7Copy full SHA for 015cca7
.github/workflows/build.yml
@@ -39,10 +39,15 @@ jobs:
39
- name: Build with Middleman
40
run: |
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
+ - name: Setup preview
+ env:
+ www_path: 'pr-${{ github.event.number }}'
+ run: |
+ mkdir -p __preview
+ git clone https://github.com/rspec/preview --depth 1 --branch main __preview
+ 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 commit -m 'PR build ${{ github.event.number }} - ${{ github.job }}'
53
+ git push origin main
0 commit comments