Skip to content

Commit 333e94e

Browse files
committed
Revert "Update build.yml"
This reverts commit 82f4bd7.
1 parent 82f4bd7 commit 333e94e

File tree

1 file changed

+25
-27
lines changed

1 file changed

+25
-27
lines changed

.github/workflows/build.yml

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@ jobs:
1818
outputs:
1919
locale-list: ${{ steps.generate.outputs.locale-list }}
2020
steps:
21-
- run: echo ${{ github.head_ref }}
2221
- uses: actions/checkout@v3
23-
with:
24-
ref: github.head_ref
2522
- uses: actions/setup-node@v3
2623
with:
2724
cache: 'yarn'
@@ -98,27 +95,28 @@ jobs:
9895
path: build
9996
if-no-files-found: error
10097

101-
# deploy-to-netlify:
102-
# needs: build-locales
103-
# runs-on: ubuntu-latest
104-
# steps:
105-
# - uses: actions/checkout@v3
106-
# - name: Retrieve build folder
107-
# uses: actions/download-artifact@v3
108-
# with:
109-
# name: build
110-
# path: build
111-
# - name: Deploy to Netlify
112-
# uses: nwtgck/actions-netlify@b7c1504e00c6b8a249d1848cc1b522a4865eed99
113-
# with:
114-
# publish-dir: './build'
115-
# netlify-config-path: ./netlify.toml
116-
# production-branch: dev
117-
# alias: deploy-preview-${{ github.event.number }}
118-
# github-token: ${{ secrets.GITHUB_TOKEN }}
119-
# deploy-message: 'Deploy from GitHub Actions'
120-
# fails-without-credentials: true
121-
# enable-commit-comment: false
122-
# env:
123-
# NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
124-
# NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
98+
deploy-to-netlify:
99+
needs: build-locales
100+
runs-on: ubuntu-latest
101+
steps:
102+
- uses: actions/checkout@v3
103+
- name: Retrieve build folder
104+
uses: actions/download-artifact@v3
105+
with:
106+
name: build
107+
path: build
108+
- name: Deploy to Netlify
109+
uses: nwtgck/actions-netlify@b7c1504e00c6b8a249d1848cc1b522a4865eed99
110+
with:
111+
publish-dir: './build'
112+
netlify-config-path: ./netlify.toml
113+
production-branch: dev
114+
alias: deploy-preview-${{ github.event.number }}
115+
github-token: ${{ secrets.GITHUB_TOKEN }}
116+
deploy-message: 'Deploy from GitHub Actions'
117+
fails-without-credentials: true
118+
enable-commit-comment: false
119+
120+
env:
121+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
122+
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}

0 commit comments

Comments
 (0)