Compare commits
	
		
			2 Commits
		
	
	
		
			d0fd0482d2
			...
			f6bf6c0bc0
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| f6bf6c0bc0 | |||
| 56dce273a5 | 
							
								
								
									
										32
									
								
								.gitea/workflows/lint.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								.gitea/workflows/lint.yaml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,32 @@ | ||||
| name: linting & formatting | ||||
| run-name: ${{ gitea.actor }} is checking linting & formatting. | ||||
| 
 | ||||
| on: | ||||
|   push: | ||||
|     branches: | ||||
|       - main | ||||
|       - ci-test | ||||
|     tags: | ||||
|       - v* | ||||
| 
 | ||||
| jobs: | ||||
|   build: | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|       - name: Checkout repository | ||||
|         run: | | ||||
|           git init | ||||
|           git remote add origin ${{ gitea.event.repository.clone_url }} | ||||
|           git fetch --depth 1 origin ${{ gitea.ref }} | ||||
|           git checkout FETCH_HEAD | ||||
|           git lfs pull | ||||
|       - name: Setup Python | ||||
|         uses: actions/setup-python@v5.3.0 | ||||
|         with: | ||||
|           python-version: '3.8' | ||||
|       - name: Install gdscript-toolkit | ||||
|         run: pip install -r requirements.txt | ||||
|       - name: Run gdLint | ||||
|         run: gdlint src/ | ||||
|       - name: Check formatting | ||||
|         run: gdformat -c src | ||||
							
								
								
									
										52
									
								
								.gitea/workflows/publish.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										52
									
								
								.gitea/workflows/publish.yaml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,52 @@ | ||||
| # Based on https://github.com/aBARICHELLO/godot-ci/blob/master/.github/workflows/godot-ci.yml | ||||
| name: itch.io publish action | ||||
| run-name: ${{ gitea.actor }} is publishing ${{ vars.ITCH_GAME }} ${{ gitea.ref_name }} to itch.io. | ||||
| 
 | ||||
| on: | ||||
|   push: | ||||
|     tags: | ||||
|       - v* | ||||
| 
 | ||||
| env: | ||||
|   GODOT_VERSION: 4.3 | ||||
|   EXPORT_NAME: ${{ vars.ITCH_GAME }} | ||||
|   PROJECT_PATH: . | ||||
| 
 | ||||
| 
 | ||||
| jobs: | ||||
|   build: | ||||
|     runs-on: ubuntu-20.04 | ||||
|     container: | ||||
|       image: barichello/godot-ci:4.3 | ||||
|     strategy: | ||||
|       matrix: | ||||
|         include: | ||||
|           - target: linux64 | ||||
|             type: x86_64 | ||||
|           - target: osx | ||||
|             type: app | ||||
|           - target: win64 | ||||
|             type: exe | ||||
|     env: | ||||
|       BUILD_DIR: build/${{ vars.ITCH_GAME }}_${{ gitea.ref_name }}_${{ matrix.target }} | ||||
|     steps: | ||||
|       - name: Checkout repository | ||||
|         run: | | ||||
|           git init | ||||
|           git remote add origin ${{ gitea.event.repository.clone_url }} | ||||
|           git fetch --depth 1 origin ${{ gitea.ref }} | ||||
|           git checkout FETCH_HEAD | ||||
|           git lfs pull | ||||
|       - name: Reimport assets | ||||
|         run: godot --headless --import | ||||
|       - name: Build project | ||||
|         run: | | ||||
|           echo "building to $BUILD_DIR" | ||||
|           mkdir -p $BUILD_DIR | ||||
|           godot --headless --export-debug ${{ matrix.target }} $BUILD_DIR/${{ vars.ITCH_GAME }}.${{ matrix.type }} | ||||
|       - name: Publish | ||||
|         run: | | ||||
|           echo "pushing $BUILD_DIR" | ||||
|           butler push $BUILD_DIR ${{ vars.ITCH_USER }}/${{ vars.ITCH_GAME }}:${{ matrix.target }} --userversion ${{ gitea.ref_name }} | ||||
|         env: | ||||
|           BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }} | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user