Skip to content

Update use-ref-dimensions.tsx #871

Update use-ref-dimensions.tsx

Update use-ref-dimensions.tsx #871

Workflow file for this run

name: Rollup
on:
push:
branches: ['test']
jobs:
build_and_deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install
- run: npm run build --if-present
- name: copy file via ssh password
uses: appleboy/scp-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
source: './dist/'
target: '/home/aukus/deploy/frontend/test/deploy_build'
- name: swap build and restart nginx
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
command_timeout: 1m
script: cd "/home/aukus/deploy/frontend/test" && rm -rf build && mkdir build && mv deploy_build/dist/* ./build/ && rm -r deploy_build/dist
- name: Aukus test frontend build and upload success!
uses: rjstone/discord-webhook-notify@v1
if: success()
with:
severity: info
details: Aukus test frontend build and upload success!
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }}
- name: Aukus test frontend build and upload failure!
uses: rjstone/discord-webhook-notify@v1
if: failure()
with:
severity: error
details: Aukus test frontend build and upload failure!
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }}