Update README.md #453
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: Publish Development | |
on: | |
push: | |
branches: ["main"] | |
permissions: write-all | |
env: | |
CLOUD_CLIENT_ID: OuFa4OeeKveeRq1G6xIPgrl6EBUJtxLR | |
CLOUD_CALLBACK_URL_DEV: https://dev.surrealist.app/cloud/callback | |
SCOUT_COPILOT_ID: copilot_cm3gcpzxw00020cs66takkem5 | |
SCOUT_WORKFLOW_ID: wf_cm3gbr8vk00010ds6b1g0vnvv | |
jobs: | |
version: | |
name: Extract version | |
runs-on: ubuntu-latest | |
outputs: | |
version: ${{ steps.extract_version.outputs.version }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Extract version | |
id: extract_version | |
uses: Saionaro/[email protected] | |
build-web: | |
name: Build Web | |
runs-on: "ubuntu-20.04" | |
needs: | |
- version | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: [20] | |
steps: | |
- name: Information | |
run: echo "Building Surrealist version ${{ needs.version.outputs.version }} for web" | |
- name: Code checkout | |
uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Setup PNPM | |
uses: pnpm/action-setup@v3 | |
with: | |
version: 9 | |
- name: Frontend dependencies | |
run: | | |
pnpm i --frozen-lockfile | |
- name: Generate license report | |
run: pnpm license-report | |
- name: Build application | |
run: pnpm build | |
env: | |
VITE_SURREALIST_PREVIEW: "true" | |
VITE_CLOUD_CLIENT_ID: ${{ env.CLOUD_CLIENT_ID }} | |
VITE_CLOUD_CALLBACK_URL: ${{ env.CLOUD_CALLBACK_URL_DEV }} | |
VITE_SCOUT_COPILOT_ID: ${{ env.SCOUT_COPILOT_ID }} | |
VITE_SCOUT_WORKFLOW_ID: ${{ env.SCOUT_WORKFLOW_ID }} | |
- uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-region: us-west-2 | |
aws-access-key-id: ${{ secrets.AMAZON_ACCESS_KEY }} | |
aws-secret-access-key: ${{ secrets.AMAZON_SECRET_KEY }} | |
- name: Upload web app | |
run: make deploy-dev |