|
18 | 18 | outputs: |
19 | 19 | locale-list: ${{ steps.generate.outputs.locale-list }} |
20 | 20 | steps: |
21 | | - - run: echo ${{ github.head_ref }} |
22 | 21 | - uses: actions/checkout@v3 |
23 | | - with: |
24 | | - ref: github.head_ref |
25 | 22 | - uses: actions/setup-node@v3 |
26 | 23 | with: |
27 | 24 | cache: 'yarn' |
@@ -98,27 +95,28 @@ jobs: |
98 | 95 | path: build |
99 | 96 | if-no-files-found: error |
100 | 97 |
|
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