Skip to content

Commit bb9991b

Browse files
committed
Merge remote-tracking branch 'origin/main' into isbell-duality
2 parents 0ac0261 + ca1cc23 commit bb9991b

File tree

1 file changed

+7
-23
lines changed

1 file changed

+7
-23
lines changed

.github/workflows/preview.yml

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,11 @@ on:
66
- opened
77
- reopened
88
- synchronize
9-
- closed
10-
11-
permissions:
12-
pull-requests: write
139

1410
jobs:
1511
pr-preview:
1612
runs-on: ubuntu-latest
1713

18-
if: github.event.pull_request.head.repo.full_name == github.repository
19-
2014
env:
2115
mailmap: ${{ secrets.MAILMAP }}
2216

@@ -56,23 +50,13 @@ jobs:
5650
NIX_BUILD_SHELL: bash
5751
build_command: |
5852
set -eu
59-
1lab-shake -j all --skip-agda -b "https://plt-amy.github.io/1lab-previews/pr-${{ github.event.number }}"
53+
1lab-shake -j all --skip-agda -b "https://preview.1lab.dev/${{ github.event.number }}/"
6054
eval "$installPhase"
61-
cp -rv _build/site pr-${{ github.event.number }}
62-
63-
- name: Upload 📦
64-
uses: dmnemec/copy_file_to_another_repo_action@main
65-
env:
66-
API_TOKEN_GITHUB: ${{ secrets.PREVIEW_TOKEN }}
67-
with:
68-
source_file: pr-${{ github.event.number }}
69-
destination_repo: 'plt-amy/1lab-previews'
70-
user_email: '[email protected]'
71-
user_name: 'plt-amy'
72-
commit_message: 'Preview of PR #${{ github.event.number }}'
55+
echo "${{ github.event.number }}" > _build/site/.pr-number
56+
# cp -rv _build/site pr-${{ github.event.number }}
7357
74-
- name: Inform ℹ️
75-
uses: marocchino/sticky-pull-request-comment@v2
58+
- name: Archive 📦
59+
uses: actions/upload-artifact@v3
7660
with:
77-
message: |
78-
[Rendered preview](https://plt-amy.github.io/1lab-previews/pr-${{ github.event.number }})
61+
name: pr-preview
62+
path: _build/site

0 commit comments

Comments
 (0)