Skip to content

remove non-quarkiverse from the index #139

remove non-quarkiverse from the index

remove non-quarkiverse from the index #139

Workflow file for this run

name: Surge.sh Preview
on:
pull_request_target:
# when using teardown: 'true', add default event types + closed event type
types: [opened, synchronize, reopened]
defaults:
run:
shell: bash
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
preview:
runs-on: ubuntu-20.04
permissions:
pull-requests: write # allow surge-preview to create/update PR comments
steps:
- uses: actions/checkout@v4
with:
ref: refs/pull/${{ github.event.pull_request.number }}/merge
- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install packages
run: npm i
- name: Generate Site
run: npm run build
- uses: afc163/surge-preview@v1
id: preview_step
with:
surge_token: ${{ secrets.SURGE_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
dist: build/site
failOnError: 'true'
build: |
echo Deploying to surge.sh
- name: Get the preview_url
run: echo "url => ${{ steps.preview_step.outputs.preview_url }}"