Co-authored-by: Ben Parsons <9parsonsb@gmail.com> Co-committed-by: Ben Parsons <9parsonsb@gmail.com>
		
			
				
	
	
		
			31 lines
		
	
	
		
			862 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			862 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| name: Deploy
 | |
| 
 | |
| on:
 | |
|   push:
 | |
|     tags:
 | |
|       - '*'
 | |
| 
 | |
| runs-on: selfhost
 | |
| 
 | |
| jobs:
 | |
|   deploy:
 | |
|     needs: build
 | |
|     runs-on: selfhost
 | |
|     steps:
 | |
|       - uses: actions/checkout@v2
 | |
|       - name: get artifact
 | |
|         run: |
 | |
|           curl --user minijack:${{ secrets.PACKAGE_TOKEN }} \
 | |
|           https://git.quartznet.info/api/packages/quartznet/generic/artifacts/ref-${{ gitea.sha }}/build-${{ gitea.sha }}.tar.gz > build.tar.gz
 | |
|           echo https://git.quartznet.info/api/packages/quartznet/generic/artifacts/ref-${{ gitea.sha }}/build-${{ gitea.sha }}.tar.gz           
 | |
|       - name: extract artifact
 | |
|         run: |
 | |
|           tar -xvzf build.tar.gz 
 | |
|       - run: ls -la build
 | |
|       - run: ls -la /www/
 | |
|       - run: ls -la /www/svelte/
 | |
|       - name: 🧹 Clean Deploy Area
 | |
|         run: rm -rf /www/svelte/build
 | |
|       - name: 📦 Deploy
 | |
|         run: mv build /www/svelte/
 |