Merge pull request #900 from alpheios-project/html-sentence-select #24
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
name: Build Dev | |
on: | |
push: | |
branches: | |
- 'vue3-version' | |
# branches-ignore: master | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- name: Make envfile | |
uses: SpicyPizza/[email protected] | |
with: | |
envkey_DETECT_LANG_API: ${{ secrets.DETECT_LANG_API }} | |
file_name: .env | |
- name: Fix up git URLs | |
run: echo -e '[url "https://github.com/"]\n insteadOf = "git://github.com/"' >> ~/.gitconfig | |
- name: prep build | |
run: npm install && npm update | |
- name: build | |
id: run_build | |
run: npm run github-build | |
- name: dist | |
run: npm run dist | |
- name: s3 | |
uses: jakejarvis/s3-sync-action@master | |
with: | |
args: --acl public-read --delete | |
env: | |
AWS_S3_BUCKET: 'alpheios-misc-dev' | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_REGION: 'us-east-2' | |
SOURCE_DIR: 'public' | |
DEST_DIR: 'alignment-editor' | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ steps.run_build.outputs.buildName }} | |
release_name: Release ${{ steps.run_build.outputs.buildName }} | |
draft: false | |
prerelease: true | |
- name: Upload dist | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps | |
asset_path: ./dist-zip/alpheios-alignment-editor.zip | |
asset_name: alpheios-alignment-editor.zip | |
asset_content_type: application/zip |