Skip to content

Instantly share code, notes, and snippets.

@stom66
Created March 26, 2023 02:55
Show Gist options
  • Select an option

  • Save stom66/5720fe378dd212f0c1b7aa2bb71d72bb to your computer and use it in GitHub Desktop.

Select an option

Save stom66/5720fe378dd212f0c1b7aa2bb71d72bb to your computer and use it in GitHub Desktop.
GitHub action for automatic deployment to Decentraland
name: Deploy to DCL PROD
on:
pull_request:
types:
- closed
branches:
- 'deploy'
env:
DCL_PRIVATE_KEY: ${{ secrets.DCL_PRIVATE_KEY }}
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: dcl-scene
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install npm packages
run: npm install
- name: Build scene
run: npm run build
- name: Deploy scene
run: npm run deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment