Skip to content

Commit

Permalink
Merge pull request #25 from LyonSyonII/dev
Browse files Browse the repository at this point in the history
FEA: added surge.sh as PR preview builder
  • Loading branch information
LyonSyonII authored Dec 21, 2023
2 parents 6f922ad + 88cecc4 commit 8643329
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: 🔂 Surge PR Preview

on:
pull_request:
push:
branches: [testing]

jobs:
preview:
runs-on: ubuntu-latest
permissions:
pull-requests: write # allow surge-preview to create/update PR comments
steps:
- uses: actions/checkout@v2
- uses: afc163/surge-preview@v1
id: preview_step
with:
github_token: ${{ github.token }}
surge_token: ${{ secrets.SURGE_TOKEN }}
dist: frontend/dist
teardown: true
failOnError: true
build: |
npm install
npm run build
- name: Get the preview_url
run: echo "url => ${{ steps.preview_step.outputs.preview_url }}"

0 comments on commit 8643329

Please sign in to comment.