diff --git a/.github/workflows/cmake-wasm.yml b/.github/workflows/cmake-wasm.yml index 8f1e15c4..ba62e82b 100644 --- a/.github/workflows/cmake-wasm.yml +++ b/.github/workflows/cmake-wasm.yml @@ -2,7 +2,7 @@ name: WebAssembly build -on: [push, pull_request] +on: [push, pull_request, workflow_dispatch] env: # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) @@ -117,3 +117,15 @@ jobs: ${{runner.workspace}}/embuild/cli/vgmstream-cli.js ${{runner.workspace}}/embuild/cli/vgmstream-cli.wasm name: vgmstream-wasm + + - name: Upload artifacts to S3 + if: github.event_name != 'pull_request' + working-directory: ${{runner.workspace}}/build + shell: bash + env: + AWS_DEFAULT_REGION: us-west-1 + AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}} + AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}} + run: | + aws s3 cp ${{runner.workspace}}/embuild/cli/vgmstream-cli.js s3://vgmstream-builds/js/vgmstream-cli.js --acl public-read + aws s3 cp ${{runner.workspace}}/embuild/cli/vgmstream-cli.wasm s3://vgmstream-builds/js/vgmstream-cli.wasm --acl public-read \ No newline at end of file diff --git a/doc/index.rst b/doc/index.rst index 50634e3e..53b6454b 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -8,6 +8,7 @@ self Download + Web version USAGE FORMATS BUILD