30 lines
		
	
	
		
			737 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			737 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
---
 | 
						|
when:
 | 
						|
  event:
 | 
						|
    - push
 | 
						|
 | 
						|
steps:
 | 
						|
  build:
 | 
						|
    image: node:25.1.0-bullseye
 | 
						|
    name: Build the script
 | 
						|
    environment:
 | 
						|
      GIT_TAG: '@clappr/player@0.11.9'
 | 
						|
    commands:
 | 
						|
      - git clone https://github.com/clappr/clappr.git clappr
 | 
						|
      - cd clappr
 | 
						|
      - git checkout $GIT_TAG
 | 
						|
      - cd ./packages/player
 | 
						|
      - yarn install
 | 
						|
      - yarn run build
 | 
						|
  upload:
 | 
						|
    name: Upload the script
 | 
						|
    image: rclone/rclone:latest
 | 
						|
    environment:
 | 
						|
      GIT_TAG: 0.11.9
 | 
						|
      RCLONE_CONFIG: /tmp/rclone.conf
 | 
						|
      RCLONE_CONFIG_CONTENT:
 | 
						|
        from_secret: rclone_config_content
 | 
						|
    commands:
 | 
						|
      - echo "$RCLONE_CONFIG_CONTENT" > $RCLONE_CONFIG
 | 
						|
      - rclone copy -P clappr/packages/player/dist/ s3:/badhouseplants-js/clappr/$GIT_TAG
 |