Skip to content

Commit a76c2e1

Browse files
committed
fix: remove GH preview publishing step from CI
1 parent c9f1cbf commit a76c2e1

1 file changed

Lines changed: 0 additions & 55 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -102,61 +102,6 @@ jobs:
102102
- uses: ./.github/actions/test-package
103103
with:
104104
package_name: ${{ matrix.package }}
105-
106-
preview:
107-
runs-on: ubuntu-latest
108-
needs: build
109-
# We don't want to give forks free reign to publish to our GitHub Pages, so run this job only if both:
110-
# - any workspace changed (otherwise there's no work to do)
111-
# - and either
112-
# - this is not a PR (so it's some other event that happened in our fork, like a push or merge group)
113-
# - or it's a PR from our fork (not some other fork)
114-
# - and
115-
# - it's not a Renovate branch (just to reduce noise)
116-
if: ${{
117-
(needs.build.outputs.any-workspace == 'true') &&
118-
(
119-
(!github.event.pull_request) ||
120-
(github.event.pull_request.head.repo.full_name == github.repository)
121-
) &&
122-
(!startsWith((github.head_ref || github.ref_name), 'renovate/'))
123-
}}
124-
name: Publish preview playgrounds to GitHub Pages
125-
steps:
126-
- name: Determine GitHub Pages directory name
127-
id: branch_dir_name
128-
# even `develop` should be published to a subdirectory
129-
# that way each branch can be updated or cleaned up independently
130-
run: |
131-
echo "result=${GITHUB_REF_NAME//[^A-Za-z0-9._-]/_}" | tee --append "$GITHUB_OUTPUT"
132-
- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6
133-
with:
134-
name: build
135-
path: packages
136-
- name: Prepare playgrounds for GitHub Pages
137-
working-directory: ./packages
138-
run: |
139-
mkdir -p ../pages/
140-
for pkg in *; do
141-
if [ -d "${pkg}/playground" ]; then
142-
# using symlinks is quick and artifact generation will dereference them
143-
# if the GitHub Pages action stops dereferencing these links, we'll need to copy the files instead
144-
ln -s "../packages/${pkg}/playground" "../pages/${pkg}"
145-
fi
146-
done
147-
148-
# scratch-gui doesn't follow the pattern above
149-
ln -s "../packages/scratch-gui/build" "../pages/scratch-gui"
150-
151-
ls -l ../pages/
152-
- name: Deploy playgrounds to GitHub Pages
153-
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4
154-
with:
155-
github_token: ${{ secrets.GITHUB_TOKEN }}
156-
publish_dir: ./pages
157-
destination_dir: "${{steps.branch_dir_name.outputs.result}}"
158-
full_commit_message: "Build for ${{ github.sha }} ${{ github.event.head_commit.message }}"
159-
160105
results:
161106
name: Test Results
162107
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)