You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using NodeJS; run(`$(npm_cmd()) install`); run(`$(npm_cmd()) run css-build`);
47
52
using Franklin;
48
53
optimize(prerender=false, suppress_errors=false)'
49
-
# - name: Deploy (preview)
50
-
# if: github.event_name == 'pull_request' && github.repository == github.event.pull_request.head.repo.full_name # if this build is a PR build and the PR is NOT from a fork
# BRANCH: gh-preview # The branch where the PRs previews are stored
54
-
# FOLDER: __site
55
-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56
-
# TARGET_FOLDER: "previews/PR${{ github.event.number }}" # The website preview is going to be stored in a subfolder
54
+
55
+
- name: Deploy (preview)
56
+
if: github.event_name == 'pull_request' && github.repository == github.event.pull_request.head.repo.full_name # if this build is a PR build and the PR is NOT from a fork
BRANCH: gh-pages # Replace here the branch where your website is deployed
63
70
FOLDER: __site
71
+
72
+
pr_comment:
73
+
needs: build-and-deploy
74
+
runs-on: ubuntu-latest
75
+
steps:
76
+
- name: 'Comment PR'
77
+
uses: actions/github-script@0.3.0
78
+
if: github.event_name == 'pull_request' && github.repository == github.event.pull_request.head.repo.full_name # if this is a pull request build AND the pull request is NOT made from a fork
github.issues.createComment({ issue_number, owner, repo, body: 'Once the build has completed, you can preview your PR at this URL: https://understanding-the-solver-output.netlify.app/previews/PR${{ github.event.number }}/' });
0 commit comments