diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml deleted file mode 100644 index 4714620..0000000 --- a/.github/workflows/preview.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: Preview webui - -on: - pull_request_target: - paths: - - 'webui/**' - types: [opened, synchronize, reopened, closed] - -jobs: - preview: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - - name: Set up Node - uses: actions/setup-node@v2 - with: - node-version: '14' - - - name: Install dependencies - run: | - cd webui/ - npm install - - - name: Build webui - run: | - cd webui/ - npm run build - - - uses: afc163/surge-preview@v1 - id: preview_step - with: - surge_token: ${{ secrets.SURGE_TOKEN }} - github_token: ${{ secrets.GITHUB_TOKEN }} - teardown: 'true' - dist: webui/build - build: | - echo "dummy" - - - name: Get the preview_url - run: echo "url => ${{ steps.preview_step.outputs.preview_url }}" \ No newline at end of file