sef-global / sef-site

Official Website for Sustainable Education Foundation
https://sefglobal.org
MIT License
51 stars 137 forks source link

Update the github workflow surge deployment #1492

Closed anjula-sack closed 1 year ago

anjula-sack commented 1 year ago

Is your feature request related to a problem? Please describe.

Describe the solution you'd like

name: PR-Preview-Generator
on:
  pull_request:
    branches:
      - master

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-node@v3
        with:
          node-version: 16
      - name: Installing Surge
        run: npm i -g surge
      - name: Deploying on Surge
        env:
          DEPLOY_DOMAIN: https://pr-${{ github.event.number }}-sef-site.surge.sh
        run: surge ./ $DEPLOY_DOMAIN --token ${{ secrets.SURGE_TOKEN }}

Are you working on it? No

Tharindu37 commented 1 year ago

I would like to work on this