Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,30 +1,5 @@
name: deploy-with-version

on:
workflow_dispatch:
inputs:
dcl-sdk-package:
type: string
description: "@dcl/sdk package"
default: "@dcl/sdk@latest"
workflow_call:
inputs:
dcl-sdk-package:
type: string
description: "@dcl/sdk package"
default: "@dcl/sdk@latest"
secrets:
SDK_TEAM_S3_BUCKET:
required: true
SDK_TEAM_AWS_ID:
required: true
SDK_TEAM_AWS_SECRET:
required: true
SDK_TEAM_S3_BASE_URL:
required: true
AB_TOKEN:
required: true

jobs:
build-and-deploy:
runs-on: ubuntu-latest
Expand All @@ -38,7 +13,7 @@ jobs:
- uses: actions/github-script@v7
id: extract_version
env:
VERSION: ${{ inputs.dcl-sdk-package }}
VERSION: ${{ env.dcl-sdk-package }}
with:
script: return `${process.env.VERSION.split('@').slice(-1)[0]}`
result-encoding: string
Expand All @@ -52,7 +27,7 @@ jobs:
result-encoding: string

- name: install sdk version
run: npm i ${{inputs.dcl-sdk-package}} --workspaces
run: npm i ${{env.dcl-sdk-package}} --workspaces

- name: install dependencies
run: npm i --workspaces
Expand All @@ -64,7 +39,7 @@ jobs:
run: >
npm run export-static -- \
--realmName ${{steps.get-branch-realm-name.outputs.result}} \
--commsAdapter ws-room:ws-room-service.decentraland.org/rooms/${{steps.get-branch-realm-name.outputs.result}} \
--commsAdapter fixed-adapter:signed-login:https://worlds-content-server.decentraland.org/get-comms-adapter/world-prd-boedo.dcl.eth
--baseUrl '${{ secrets.SDK_TEAM_S3_BASE_URL }}/ipfs' \
--destination "$(pwd)/ipfs"

Expand All @@ -91,7 +66,7 @@ jobs:
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: "github-actions[bot]"
comment-author: 'github-actions[bot]'
body-includes: Test this pull request

- name: Create or update comment
Expand All @@ -107,5 +82,5 @@ jobs:
```bash
/changerealm ${{ secrets.SDK_TEAM_S3_BASE_URL }}/ipfs/${{steps.get-branch-realm-name.outputs.result}}
```
This PR has been published using the `@dcl/sdk` version `${{ inputs.dcl-sdk-package }}`
This PR has been published using the `@dcl/sdk` version `${{ env.dcl-sdk-package }}`
edit-mode: replace
25 changes: 15 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,22 @@ name: push-deploy-world
on:
push:
branches:
- "main"
- 'main'
pull_request:

jobs:
push-or-pr:
uses: ./.github/workflows/deploy-with-version.yml
with:
dcl-sdk-package: '@dcl/sdk@latest'
secrets:
SDK_TEAM_S3_BUCKET: ${{ secrets.SDK_TEAM_S3_BUCKET }}
SDK_TEAM_AWS_ID: ${{ secrets.SDK_TEAM_AWS_ID }}
SDK_TEAM_AWS_SECRET: ${{ secrets.SDK_TEAM_AWS_SECRET }}
SDK_TEAM_S3_BASE_URL: ${{ secrets.SDK_TEAM_S3_BASE_URL }}
AB_TOKEN: ${{ secrets.AB_TOKEN }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: 'Deploy'
if: github.event_name != 'false'
uses: ./.github/actions/deploy-with-version
with:
dcl-sdk-package: '@dcl/sdk@latest'
env:
SDK_TEAM_S3_BUCKET: ${{ secrets.SDK_TEAM_S3_BUCKET }}
SDK_TEAM_AWS_ID: ${{ secrets.SDK_TEAM_AWS_ID }}
SDK_TEAM_AWS_SECRET: ${{ secrets.SDK_TEAM_AWS_SECRET }}
SDK_TEAM_S3_BASE_URL: ${{ secrets.SDK_TEAM_S3_BASE_URL }}
AB_TOKEN: ${{ secrets.AB_TOKEN }}
5 changes: 2 additions & 3 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: cron-job-sdk-next

on:
schedule:
- cron: "0 0 * * *"
- cron: '0 0 * * *'
jobs:
skip-up-to-date-schedules:
runs-on: ubuntu-latest
Expand All @@ -17,8 +17,7 @@ jobs:

build-and-deploy-latest:
needs: [skip-up-to-date-schedules]
if: ${{ needs.skip-up-to-date-schedules.outputs.out_of_date_latest }}
uses: ./.github/workflows/deploy-with-version.yml
uses: ./.github/actions/deploy-with-version
with:
dcl-sdk-package: '@dcl/sdk@latest'
secrets:
Expand Down