try to fix bundle sharing
This commit is contained in:
parent
33f83e4491
commit
cda96bee0b
15
.github/workflows/publish.yml
vendored
15
.github/workflows/publish.yml
vendored
@ -27,11 +27,26 @@ jobs:
|
|||||||
- name: Disable Jekyll
|
- name: Disable Jekyll
|
||||||
run: sudo touch ./public/.nojekyll
|
run: sudo touch ./public/.nojekyll
|
||||||
|
|
||||||
|
- name: Publish site as artifact
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: website
|
||||||
|
path: ./public
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
needs: build
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Download website bundle
|
||||||
|
uses: actions/download-artifact@v2
|
||||||
|
with:
|
||||||
|
name: website
|
||||||
|
path: ./public
|
||||||
|
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
if: success()
|
if: success()
|
||||||
uses: crazy-max/ghaction-github-pages@v2
|
uses: crazy-max/ghaction-github-pages@v2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user