Skip to content

deploy-release-iframe-web #222

deploy-release-iframe-web

deploy-release-iframe-web #222

Workflow file for this run

name: deploy-release-iframe-web
on: workflow_dispatch
jobs:
release-web:
runs-on: ubuntu-latest
env:
HOST_PATH: '${{ github.event.repository.name }}/${{ github.sha }}/'
PUBLIC_PATH: 'https://asset.onekey-asset.com/${{ github.event.repository.name }}/${{ github.sha }}/'
steps:
- uses: actions/checkout@v4
- name: Setup Environment
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://npm.pkg.github.com'
- name: Install Package
run: |
yarn
yarn bootstrap
- name: Build Target
run: |
yarn build
- name: Build Target
env:
PUBLIC_PATH: ${{ env.PUBLIC_PATH }}
run: |
yarn build
- name: Deploy to CDN
uses: OneKeyHQ/onekey-github-actions/s3-upload@main
with:
aws_key_id: ${{ secrets.AWS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws_bucket: ${{ secrets.AWS_BUCKET }}
source_dir: './packages/hd-web-sdk/build/'
destination_dir: ${{ env.HOST_PATH }}
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: hardware-sdk-${{ github.sha }}
path: |
./packages/hd-web-sdk/build/