-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from zfox23/v0.5.0
v0.5.0
- Loading branch information
Showing
16 changed files
with
1,043 additions
and
391 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: Deploy-Main-Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
Deploy-Main-Build: | ||
runs-on: ubuntu-latest | ||
if: github.event.pusher.name != 'hifibuild' | ||
|
||
steps: | ||
- name: View Commit Author | ||
run: echo "The last push was made by a user named ${{ github.event.pusher.name }}." | ||
|
||
- uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.GUSTAVO_TOKEN }} | ||
|
||
- name: Bump npm prerelease version | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "hifibuild" | ||
npm version prerelease -m "Bump package version to %s" | ||
git push | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
|
||
- name: Install Modules | ||
run: npm i | ||
|
||
- name: Maybe Build WebJS Version of Library | ||
run: npm run build:web:prod | ||
|
||
- name: Create WebJS Main ZIP | ||
uses: papeloto/action-zip@v1 | ||
with: | ||
files: dist/ | ||
dest: dist/highfidelity-hifi-audio-web.zip | ||
|
||
- name: Maybe Upload WebJS Version to Latest S3 Folder | ||
uses: highfidelity/s3-sync-action@master | ||
with: | ||
args: --follow-symlinks --delete | ||
env: | ||
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} | ||
AWS_ACCESS_KEY_ID: ${{ secrets.IAM_SPATIAL_AUDIO_JS_KEY }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.IAM_SPATIAL_AUDIO_JS_SECRET }} | ||
AWS_REGION: 'us-west-2' # optional: defaults to us-east-1 | ||
SOURCE_DIR: ${{runner.workspace}}/hifi-spatial-audio-js/dist | ||
DEST_DIR: releases/main | ||
|
||
- name: Build NodeJS Version of Library | ||
run: npm run build:node | ||
|
||
- id: publish | ||
name: Maybe Publish to NPM using main Tag | ||
uses: JS-DevTools/npm-publish@v1 | ||
with: | ||
token: ${{ secrets.NPM_TOKEN }} | ||
tag: "main" | ||
|
||
- name: Some alerts | ||
run: echo "New 'main' library files uploaded to S3 and published to npm. This Action does not automatically update links on https://www.highfidelity.com/api/download , nor does it upload any documentation." | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.