Skip to content

Commit 07fab3b

Browse files
committed
let's see if this works
1 parent f8fc06d commit 07fab3b

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.github/workflows/preview.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,12 @@ jobs:
3434
- name: Install dependencies
3535
run: make install
3636

37-
- name: Get current branch name
38-
run: |
39-
BRANCH_NAME=$(make safe_branch BRANCH=$GITHUB_BRANCH_NAME)
40-
echo "BRANCH_NAME=${BRANCH_NAME}" >> $GITHUB_ENV
41-
4237
- name: Build the website
43-
run: |
44-
make build MODE=preview
45-
SITE_URL="https://${BRANCH_NAME}.ep-preview.click"
46-
GIT_VERSION="${GITHUB_COMMIT_HASH}"
38+
env:
39+
BRANCH: "${{ env.GITHUB_BRANCH_NAME }}"
40+
GIT_VERSION: "${{ env.GITHUB_COMMIT_HASH }}"
41+
MODE: "preview"
42+
run: make build
4743

4844
- name: Set up SSH key
4945
uses: webfactory/[email protected]
@@ -54,7 +50,9 @@ jobs:
5450
run: ssh-keyscan "static.europython.eu" > ~/.ssh/known_hosts
5551

5652
- name: Upload preview
57-
run: make preview BRANCH=$GITHUB_BRANCH_NAME
53+
env:
54+
BRANCH: "${{ env.GITHUB_BRANCH_NAME }}"
55+
run: make preview
5856

5957
- name: Update PR Comment
6058
uses: actions/github-script@v7
@@ -82,7 +80,7 @@ jobs:
8280
}
8381
});
8482
85-
const branch_name = process.env.BRANCH_NAME;
83+
const branch_name = process.env.GITHUB_BRANCH_NAME;
8684
const url = "https://" + branch_name + "." + process.env.PREVIEW_HOSTNAME;
8785
const timestamp = new Date().toISOString();
8886
const header = "\n|Key|Value|\n|---|---|\n"

0 commit comments

Comments
 (0)