Skip to content

Commit b1d2910

Browse files
Comments out PR-Preview workflow (#245)
This workflow isn't working right now, and now is not the time to fix it. I'm commenting out this workflow for now so that we can address the issues in the near future.
1 parent e441dc9 commit b1d2910

File tree

1 file changed

+48
-47
lines changed

1 file changed

+48
-47
lines changed

.github/workflows/pr-preview.yaml

Lines changed: 48 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,48 @@
1-
name: Build and Deploy PR Preview to surge
2-
3-
on:
4-
pull_request:
5-
6-
jobs:
7-
build_preview:
8-
runs-on: ubuntu-22.04
9-
steps:
10-
- uses: actions/checkout@v3
11-
12-
- name: Install Ruby Dev
13-
run: sudo apt-get install ruby-dev
14-
15-
- name: Install AsciiDoctor
16-
run: sudo gem install asciidoctor
17-
18-
- name: Install Rouge
19-
run: sudo gem install rouge -v 3.30.0
20-
21-
- name: Setup Hugo
22-
uses: peaceiris/actions-hugo@v2
23-
with:
24-
hugo-version: '0.105.0'
25-
26-
- name: Setup base URL env var
27-
run: |
28-
export PRNUMBER=$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")
29-
echo BASEURL="https://rmoff-rmoff-blog-build_preview-pr-"$PRNUMBER".surge.sh/" >> $GITHUB_ENV
30-
31-
- name: Report base URL env var
32-
run: echo "${{ env.BASEURL }}"
33-
34-
- name: Build
35-
run: hugo --baseURL "${{ env.BASEURL }}"
36-
37-
- name: Deploy to surge
38-
uses: afc163/surge-preview@v1
39-
id: preview_step
40-
with:
41-
surge_token: ${{ secrets.SURGE_TOKEN }}
42-
github_token: ${{ secrets.GITHUB_TOKEN }}
43-
dist: public
44-
failOnError: false
45-
teardown: true
46-
build: |
47-
echo Deploying to surge.sh
1+
# name: Build and Deploy PR Preview to surge
2+
#
3+
# on:
4+
# pull_request:
5+
#
6+
# jobs:
7+
# build_preview:
8+
# runs-on: ubuntu-22.04
9+
# steps:
10+
# - uses: actions/checkout@v3
11+
#
12+
# - name: Install Ruby Dev
13+
# run: sudo apt-get install ruby-dev
14+
#
15+
# - name: Install AsciiDoctor
16+
# run: sudo gem install asciidoctor
17+
#
18+
# - name: Install Rouge
19+
# run: sudo gem install rouge -v 3.30.0
20+
#
21+
# - name: Setup Hugo
22+
# uses: peaceiris/actions-hugo@v2
23+
# with:
24+
# hugo-version: '0.105.0'
25+
#
26+
# - name: Setup base URL env var
27+
# run: |
28+
# export PRNUMBER=$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")
29+
# echo BASEURL="https://rmoff-rmoff-blog-build_preview-pr-"$PRNUMBER".surge.sh/" >> $GITHUB_ENV
30+
#
31+
# - name: Report base URL env var
32+
# run: echo "${{ env.BASEURL }}"
33+
#
34+
# - name: Build
35+
# run: hugo --baseURL "${{ env.BASEURL }}"
36+
#
37+
# - name: Deploy to surge
38+
# uses: afc163/surge-preview@v1
39+
# id: preview_step
40+
# with:
41+
# surge_token: ${{ secrets.SURGE_TOKEN }}
42+
# github_token: ${{ secrets.GITHUB_TOKEN }}
43+
# dist: public
44+
# failOnError: false
45+
# teardown: true
46+
# build: |
47+
# echo Deploying to surge.sh
48+
#

0 commit comments

Comments
 (0)