Skip to content

Commit 6582300

Browse files
committed
Fix artifact upload/download paths in actions
1 parent b92448b commit 6582300

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,12 @@ jobs:
8181
uses: actions/upload-artifact@v2
8282
with:
8383
name: dist
84-
path: dist
84+
path: dist/**
8585
- if: matrix.os == 'ubuntu-latest' && matrix.node_version == 16 && github.event_name == 'push' && github.ref == 'refs/heads/main'
8686
uses: actions/upload-artifact@v2
8787
with:
8888
name: example-app
89-
path: example/build
89+
path: example/build/**
9090
deploy:
9191
needs:
9292
- lint
@@ -106,12 +106,13 @@ jobs:
106106
- uses: actions/download-artifact@v2
107107
with:
108108
name: dist
109+
path: dist
109110
- working-directory: ./example
110111
run: npm install
111112
- uses: actions/download-artifact@v2
112113
with:
113114
name: example-app
114-
path: example
115+
path: example/build
115116
- uses: peaceiris/actions-gh-pages@v3
116117
with:
117118
personal_token: ${{ secrets.GH_PAGES_DEPLOY_TOKEN }}
@@ -138,6 +139,7 @@ jobs:
138139
- uses: actions/download-artifact@v2
139140
with:
140141
name: dist
142+
path: dist
141143
- run: npm publish --access public
142144
env:
143145
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)