Skip to content

Commit e249cd7

Browse files
Modifying GitHub Actions website workflow to the previous state (#1145)
This reverts commit f08b984.
1 parent 8c47abf commit e249cd7

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed
Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
name: RNW Website Publish
32

43
on:
@@ -14,31 +13,21 @@ jobs:
1413
publish_website:
1514
name: Website Publish
1615
runs-on: ubuntu-latest
17-
1816
steps:
1917
- name: Git Setup
2018
run: |
2119
git config --global user.email "53619745+rnbot@users.noreply.github.com"
2220
git config --global user.name "React-Native-Windows Bot"
23-
echo "machine github.com login x-access-token password ${RNBOT_GH_TOKEN}" > ~/.netrc
24-
env:
25-
RNBOT_GH_TOKEN: ${{ secrets.RNBOT_GH_TOKEN }}
26-
27-
- name: Checkout Repo
28-
uses: actions/checkout@v4
29-
with:
30-
fetch-depth: 0 # required for gh-pages push
31-
21+
echo "machine github.com login 53619745+rnbot password ${{ secrets.RNBOT_GH_TOKEN }}" > ~/.netrc
22+
- name: Git Checkout
23+
uses: actions/checkout@v2
3224
- name: Yarn Install (Website)
3325
run: yarn install --frozen-lockfile
3426
working-directory: ./website
35-
3627
- name: Publish to GitHub Pages
3728
env:
38-
GIT_USER: x-access-token
39-
GIT_PASS: ${{ secrets.RNBOT_GH_TOKEN }}
29+
GIT_USER: 53619745+rnbot
4030
run: yarn run publish-gh-pages
4131
working-directory: ./website
42-
43-
- name: Cleanup Netrc
32+
- name: Git Cleanup
4433
run: rm ~/.netrc

0 commit comments

Comments
 (0)