Created
March 26, 2023 02:55
-
-
Save stom66/5720fe378dd212f0c1b7aa2bb71d72bb to your computer and use it in GitHub Desktop.
GitHub action for automatic deployment to Decentraland
This file contains hidden or 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: 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