Skip to content

Commit

Permalink
clean files in github actions deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
zfletch committed Aug 28, 2020
1 parent 80c2320 commit 08f3bae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,14 @@ jobs:
CI: true

- name: Build
run: yarn build
run: yarn demo
env:
PUBLIC_URL: /react-router-i18n

- name: Deploy GitHub
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ github.token }}
BRANCH: gh-pages
FOLDER: build
FOLDER: demo
CLEAN: true
3 changes: 1 addition & 2 deletions config/webpack.config.demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -554,9 +554,8 @@ module.exports = function(webpackEnv) {
new WorkboxWebpackPlugin.GenerateSW({
clientsClaim: true,
exclude: [/\.map$/, /asset-manifest\.json$/],
importWorkboxFrom: 'cdn',
navigateFallback: publicUrl + '/index.html',
navigateFallbackBlacklist: [
navigateFallbackDenylist: [
// Exclude URLs starting with /_, as they're likely an API call
new RegExp('^/_'),
// Exclude URLs containing a dot, as they're likely a resource in
Expand Down

0 comments on commit 08f3bae

Please sign in to comment.