You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maintainence of this project is made possible by all the <ahref="https://github.com/JamesIves/github-pages-deploy-action/graphs/contributors">contributors</a> and <ahref="https://github.com/sponsors/JamesIves">sponsors</a>. If you'd like to sponsor this project and have your avatar or company logo appear below <ahref="https://github.com/sponsors/JamesIves">click here</a>. 💖
You can include the action in your workflow to trigger on any event that [GitHub actions supports](https://help.github.com/en/articles/events-that-trigger-workflows). If the remote branch that you wish to deploy to doesn't already exist the action will create it for you. Your workflow will also need to include the `actions/checkout` step before this workflow runs in order for the deployment to work.
55
+
You can include the action in your workflow to trigger on any event that [GitHub actions supports](https://help.github.com/en/articles/events-that-trigger-workflows). If the remote branch that you wish to deploy to doesn't already exist the action will create it for you. Your workflow will also need to include the `actions/checkout` step before this workflow runs in order for the deployment to work. If you intend to make multiple deployments in quick succession [you may need to levereage the concurrency parameter in your workflow](https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#concurrency) to prevent overlaps.
44
56
45
57
You can view an example of this below.
46
58
@@ -49,10 +61,11 @@ name: Build and Deploy
49
61
on: [push]
50
62
jobs:
51
63
build-and-deploy:
64
+
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
52
65
runs-on: ubuntu-latest
53
66
steps:
54
67
- name: Checkout 🛎️
55
-
uses: actions/checkout@v2.5.1
68
+
uses: actions/checkout@v2
56
69
57
70
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
58
71
run: |
@@ -196,10 +209,11 @@ on:
196
209
- main
197
210
jobs:
198
211
deploy:
212
+
concurrency: ci-${{ github.ref }}
199
213
runs-on: ubuntu-latest
200
214
steps:
201
215
- name: Checkout 🛎️
202
-
uses: actions/checkout@v2.5.1
216
+
uses: actions/checkout@v2
203
217
204
218
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
205
219
run: |
@@ -248,7 +262,7 @@ jobs:
248
262
runs-on: windows-latest # The first job utilizes windows-latest
249
263
steps:
250
264
- name: Checkout 🛎️
251
-
uses: actions/checkout@v2.5.1
265
+
uses: actions/checkout@v2
252
266
253
267
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
254
268
run: |
@@ -262,11 +276,12 @@ jobs:
262
276
path: build
263
277
264
278
deploy:
279
+
concurrency: ci-${{ github.ref }}
265
280
needs: [build] # The second job must depend on the first one to complete before running, and uses ubuntu-latest instead of windows.
266
281
runs-on: ubuntu-latest
267
282
steps:
268
283
- name: Checkout 🛎️
269
-
uses: actions/checkout@v2.5.1
284
+
uses: actions/checkout@v2
270
285
271
286
- name: Download Artifacts 🔻 # The built project is downloaded into the 'site' folder.
272
287
uses: actions/download-artifact@v1
@@ -315,10 +330,11 @@ on:
315
330
- main
316
331
jobs:
317
332
deploy:
333
+
concurrency: ci-${{ github.ref }}
318
334
runs-on: ubuntu-latest
319
335
steps:
320
336
- name: Checkout 🛎️
321
-
uses: actions/checkout@v2.5.1
337
+
uses: actions/checkout@v2
322
338
323
339
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
324
340
run: |
@@ -340,11 +356,3 @@ jobs:
340
356
</details>
341
357
342
358
If you wish to remove these files you must go into the deployment branch directly to remove them. This is to prevent accidental changes in your deployment script from creating breaking changes.
343
-
344
-
---
345
-
346
-
## Support 💖
347
-
348
-
This project would not be possible without all of our fantastic [contributors](https://github.com/JamesIves/github-pages-deploy-action/graphs/contributors) and [sponsors](https://github.com/sponsors/JamesIves). If you'd like to support the maintenance and upkeep of this project you can [donate via GitHub Sponsors](https://github.com/sponsors/JamesIves).
0 commit comments