Skip to content

Commit e6d8130

Browse files
Update actions in web-deploy.yml (#357)
- fix the workflow getting stuck
1 parent 5306ca3 commit e6d8130

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/merge-conflict.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
merge_conflict_job:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v3
9+
- uses: actions/checkout@v5
1010
- name: Check for merge conflicts
1111
run: |
1212
# Find files with merge conflict markers

.github/workflows/web-deploy.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ name: build gatsby
77
jobs:
88
build:
99

10-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-latest
1111

1212
strategy:
1313
matrix:
1414
node-version: [16.x]
1515
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
1616

1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v5
1919
- name: Use Node.js ${{ matrix.node-version }}
20-
uses: actions/setup-node@v3
20+
uses: actions/setup-node@v6
2121
with:
2222
node-version: ${{ matrix.node-version }}
2323
cache: 'yarn'
@@ -26,23 +26,23 @@ jobs:
2626
- run: cp .asf.yaml ./public
2727

2828
- name: Deploy-asf-staging
29-
uses: peaceiris/actions-gh-pages@v3
29+
uses: peaceiris/actions-gh-pages@v4
3030
with:
3131
github_token: ${{ secrets.GITHUB_TOKEN }}
3232
publish_branch: asf-site
3333
publish_dir: ./public
3434
destination_dir: ./
3535

3636
- name: Checkout master branch
37-
uses: actions/checkout@v3
37+
uses: actions/checkout@v5
3838
with:
3939
ref: master
4040

4141
- name: Fetch all branches
4242
run: git fetch --all
4343

4444
- name: Setup Python
45-
uses: actions/setup-python@v2
45+
uses: actions/setup-python@v6
4646
with:
4747
python-version: '3.10'
4848

@@ -56,7 +56,7 @@ jobs:
5656
run: echo "::set-output name=dir::$(pip cache dir)"
5757

5858
- name: Cache dependencies
59-
uses: actions/cache@v2
59+
uses: actions/cache@v4
6060
with:
6161
path: ${{ steps.pip-cache.outputs.dir }}
6262
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
@@ -71,7 +71,7 @@ jobs:
7171
- run: cp ./index.html ./build/html
7272

7373
- name: Documents Deploy
74-
uses: peaceiris/actions-gh-pages@v3
74+
uses: peaceiris/actions-gh-pages@v4
7575
with:
7676
github_token: ${{ secrets.GITHUB_TOKEN }}
7777
publish_branch: asf-site

0 commit comments

Comments
 (0)