Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the github workflow #236

Open
YoshithaRathnayake opened this issue Feb 21, 2023 · 0 comments
Open

Update the github workflow #236

YoshithaRathnayake opened this issue Feb 21, 2023 · 0 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@YoshithaRathnayake
Copy link
Owner

  • Currently, the github workflow is not working
  • Fix it by inserting the following codes.
# This is the work flow to generate preview links for Pull Requests
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 }}-CALCULATOR-WEBSITE.surge.sh
          SURGE_TOKEN: aadbfcb04e3dae63bb3561ca05f93eb1
        run: surge ./ $DEPLOY_DOMAIN --token $SURGE_TOKEN
@YoshithaRathnayake YoshithaRathnayake added documentation Improvements or additions to documentation enhancement New feature or request labels Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant