diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 65e7221..5936a3f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -102,4 +102,15 @@ jobs: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ${{ env.DIST_FOLDER }}/styles.css asset_name: styles.css - asset_content_type: text/css \ No newline at end of file + asset_content_type: text/css + + - name: Upload .gitignore + id: upload-gitignore + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ${{ env.DIST_FOLDER }}/.gitignore + asset_name: .gitignore + asset_content_type: text/plain diff --git a/assets/.gitignore b/assets/.gitignore new file mode 100644 index 0000000..dd1472f --- /dev/null +++ b/assets/.gitignore @@ -0,0 +1,4 @@ +# Exclude index and cache files on user side by default +*Cache.json +*Index.json +*.data diff --git a/rollup.config.js b/rollup.config.js index 486dc60..e21b160 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -36,8 +36,9 @@ export default { base64({ include: '**/*.wasm' }), copy({ targets: [ - { src: 'assets/styles.css', dest: 'dist' }, { src: 'manifest.json', dest: 'dist' }, + { src: 'assets/styles.css', dest: 'dist' }, + { src: 'assets/.gitignore', dest: 'dist' }, ], }), webWorkerLoader({ inline: true, forceInline: true, targetPlatform: "browser" }),