mirror of
				https://github.com/yeslayla/build-godot-action.git
				synced 2025-11-04 16:23:04 +01:00 
			
		
		
		
	Compare commits
	
		
			4 Commits
		
	
	
		
			main
			...
			778ecaf0da
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 778ecaf0da | |||
| 8b73ce192f | |||
| f759ed7f8f | |||
| 4117f9a9b0 | 
							
								
								
									
										11
									
								
								.bumpversion.cfg
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								.bumpversion.cfg
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,11 @@
 | 
				
			|||||||
 | 
					[bumpversion]
 | 
				
			||||||
 | 
					current_version = 0.0.0
 | 
				
			||||||
 | 
					commit = False
 | 
				
			||||||
 | 
					tag = True
 | 
				
			||||||
 | 
					tag_name = {new_version}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[semver]
 | 
				
			||||||
 | 
					main_branches = master
 | 
				
			||||||
 | 
					major_branches =
 | 
				
			||||||
 | 
					minor_branches = feature
 | 
				
			||||||
 | 
					patch_branches = hotfix, bugfix
 | 
				
			||||||
							
								
								
									
										30
									
								
								.github/workflows/version.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								.github/workflows/version.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,30 @@
 | 
				
			|||||||
 | 
					name: Version & Release
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					on:
 | 
				
			||||||
 | 
					  push:
 | 
				
			||||||
 | 
					    branches:
 | 
				
			||||||
 | 
					      - master
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  CheckVersion:
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    container:
 | 
				
			||||||
 | 
					      image: rightbrainnetworks/auto-semver
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					    - name: Checkout
 | 
				
			||||||
 | 
					      uses: actions/checkout@v1
 | 
				
			||||||
 | 
					    - name: Run Auto-Semver
 | 
				
			||||||
 | 
					      id: semver
 | 
				
			||||||
 | 
					      uses: RightBrain-Networks/semver-action@1.0.0
 | 
				
			||||||
 | 
					    - name: Create Release
 | 
				
			||||||
 | 
					      id: create_release
 | 
				
			||||||
 | 
					      uses: actions/create-release@v1
 | 
				
			||||||
 | 
					      if: steps['semver']['outputs']['RETURN_STATUS'] == '0'
 | 
				
			||||||
 | 
					      env:
 | 
				
			||||||
 | 
					        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
 | 
				
			||||||
 | 
					      with:
 | 
				
			||||||
 | 
					        tag_name: ${{ steps.semver.outputs.SEMVER_NEW_VERSION }}
 | 
				
			||||||
 | 
					        release_name: ${{ steps.semver.outputs.SEMVER_NEW_VERSION }}
 | 
				
			||||||
 | 
					        body: Release Version ${{ steps.semver.outputs.SEMVER_NEW_VERSION }}
 | 
				
			||||||
 | 
					        draft: false
 | 
				
			||||||
 | 
					        prerelease: false
 | 
				
			||||||
@ -2,19 +2,17 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
## Maintainers
 | 
					## Maintainers
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Name | Email |
 | 
					Name | Email | Twitter |
 | 
				
			||||||
-----|-------|
 | 
					-----|-------|---------|
 | 
				
			||||||
[Layla Manley](https://github.com/yeslayla) | [layla@layla.gg](mailto:layla@layla.gg)
 | 
					[Joseph Manley](https://github.com/josephbmanley) | [joseph@cloudsumu.com](mailto:joseph@cloudsumu.com) | [@josephbmanley](https://twitter.com/josephbmanley)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Contributors
 | 
					## Contributors
 | 
				
			||||||
 | 
					
 | 
				
			||||||
A giant thanks to everyone put in the time to improve Godot CI!
 | 
					A giant thanks to everyone put in the time to improve Godot CI!
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Name | Email |
 | 
					Name | Email | Twitter |
 | 
				
			||||||
---- | ----- |
 | 
					---- | ----- | ------- |
 | 
				
			||||||
[Tomer Keren](https://github.com/Tadaboody) | [tomerpet@gmail.com](tomerpet@gmail.com) | [@Tadaboody](https://twitter.com/Tadaboody)
 | 
					[Tomer Keren](https://github.com/Tadaboody) | [tomerpet@gmail.com](tomerpet@gmail.com) | [@Tadaboody](https://twitter.com/Tadaboody)
 | 
				
			||||||
[stonedDiscord](https://github.com/stonedDiscord) | |
 | 
					 | 
				
			||||||
[Bioblaze Payne](https://github.com/Bioblaze)|BioblazePayne@gmail.com|[BioblazePayne](https://twitter.com/BioblazePayne)
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Additional Credits
 | 
					## Additional Credits
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -5,7 +5,7 @@ LABEL "com.github.actions.description"="Build a Godot project for multiple platf
 | 
				
			|||||||
LABEL "com.github.actions.icon"="loader"
 | 
					LABEL "com.github.actions.icon"="loader"
 | 
				
			||||||
LABEL "com.github.actions.color"="blue"
 | 
					LABEL "com.github.actions.color"="blue"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
LABEL repository="https://github.com/yeslayla/build-godot-action"
 | 
					LABEL repository="https://github.com/josephbmanley/build-godot-action"
 | 
				
			||||||
LABEL homepage="https://cloudsumu.com/"
 | 
					LABEL homepage="https://cloudsumu.com/"
 | 
				
			||||||
LABEL maintainer="Joseph Manley <joseph@cloudsumu.com>"
 | 
					LABEL maintainer="Joseph Manley <joseph@cloudsumu.com>"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										16
									
								
								ReadMe.md
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								ReadMe.md
									
									
									
									
									
								
							@ -1,9 +1,7 @@
 | 
				
			|||||||
 
 | 
					 
 | 
				
			||||||
 | 
					
 | 
				
			||||||

 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[**This is the WIP branch for 2.x of this project. For a stable experience and documentation please use the latest 1.x**](https://github.com/yeslayla/build-godot-action/tree/1.x)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
This action builds the godot project in your `$GITHUB_WORKSPACE`, so that you can easily automate builds.
 | 
					This action builds the godot project in your `$GITHUB_WORKSPACE`, so that you can easily automate builds.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Table of Contents:
 | 
					Table of Contents:
 | 
				
			||||||
@ -44,7 +42,7 @@ jobs:
 | 
				
			|||||||
          lfs: true
 | 
					          lfs: true
 | 
				
			||||||
      - name: Build
 | 
					      - name: Build
 | 
				
			||||||
        id: build
 | 
					        id: build
 | 
				
			||||||
        uses: yeslayla/build-godot-action@v1
 | 
					        uses: manleydev/build-godot-action@v1.4.1
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          name: example
 | 
					          name: example
 | 
				
			||||||
          preset: ${{ matrix.platform }}
 | 
					          preset: ${{ matrix.platform }}
 | 
				
			||||||
@ -84,7 +82,7 @@ Additionally if you are not using a matrix, you can set the export preset as the
 | 
				
			|||||||
```yaml
 | 
					```yaml
 | 
				
			||||||
      - name: Build
 | 
					      - name: Build
 | 
				
			||||||
        id: build
 | 
					        id: build
 | 
				
			||||||
        uses: yeslayla/build-godot-action@v1.4.1
 | 
					        uses: manleydev/build-godot-action@v1.4.1
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          name: example
 | 
					          name: example
 | 
				
			||||||
          preset: win32
 | 
					          preset: win32
 | 
				
			||||||
@ -97,7 +95,7 @@ To change the export name, you can the `name` parameter to whatever you want you
 | 
				
			|||||||
```yaml
 | 
					```yaml
 | 
				
			||||||
      - name: Build
 | 
					      - name: Build
 | 
				
			||||||
        id: build
 | 
					        id: build
 | 
				
			||||||
        uses: yeslayla/build-godot-action@v1.4.1
 | 
					        uses: manleydev/build-godot-action@v1.4.1
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          name: test # This project will export with the name "test"
 | 
					          name: test # This project will export with the name "test"
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
@ -109,7 +107,7 @@ This example is set to build with debug mode enable. To disable debug, either se
 | 
				
			|||||||
```yaml
 | 
					```yaml
 | 
				
			||||||
      - name: Build
 | 
					      - name: Build
 | 
				
			||||||
        id: build
 | 
					        id: build
 | 
				
			||||||
        uses: yeslayla/build-godot-action@v1.4.1
 | 
					        uses: manleydev/build-godot-action@v1.4.1
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          name: example
 | 
					          name: example
 | 
				
			||||||
          preset: ${{ matrix.platform }}
 | 
					          preset: ${{ matrix.platform }}
 | 
				
			||||||
@ -123,7 +121,7 @@ If your project is located in a subdirectory, you can use the `projectDir` to ch
 | 
				
			|||||||
```yaml
 | 
					```yaml
 | 
				
			||||||
      - name: Build
 | 
					      - name: Build
 | 
				
			||||||
        id: build
 | 
					        id: build
 | 
				
			||||||
        uses: yeslayla/build-godot-action@v1.4.1
 | 
					        uses: manleydev/build-godot-action@v1.4.1
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          name: example
 | 
					          name: example
 | 
				
			||||||
          preset: ${{ matrix.platform }}
 | 
					          preset: ${{ matrix.platform }}
 | 
				
			||||||
@ -144,7 +142,7 @@ Example:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
```yaml
 | 
					```yaml
 | 
				
			||||||
steps:
 | 
					steps:
 | 
				
			||||||
- uses: yeslayla/build-godot-action@[VERSION]
 | 
					- uses: manleydev/build-godot-action@[VERSION]
 | 
				
			||||||
  with:
 | 
					  with:
 | 
				
			||||||
    name: godot-project
 | 
					    name: godot-project
 | 
				
			||||||
    preset: HTML5
 | 
					    preset: HTML5
 | 
				
			||||||
 | 
				
			|||||||
@ -1,6 +1,6 @@
 | 
				
			|||||||
name: "Build Godot"
 | 
					name: "Build Godot"
 | 
				
			||||||
description: "Build a Godot project for multiple platforms"
 | 
					description: "Build a Godot project for multiple platforms"
 | 
				
			||||||
author: yeslayla
 | 
					author: josephbmanley
 | 
				
			||||||
inputs:
 | 
					inputs:
 | 
				
			||||||
  name:
 | 
					  name:
 | 
				
			||||||
    description: 'Name of the exported binary'
 | 
					    description: 'Name of the exported binary'
 | 
				
			||||||
 | 
				
			|||||||
@ -3,7 +3,7 @@ set -e
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# Move godot templates already installed from the docker image to home
 | 
					# Move godot templates already installed from the docker image to home
 | 
				
			||||||
mkdir -v -p ~/.local/share/godot/export_templates
 | 
					mkdir -v -p ~/.local/share/godot/export_templates
 | 
				
			||||||
cp -a /root/.local/share/godot/templates/. ~/.local/share/godot/export_templates/
 | 
					cp -a /root/.local/share/godot/export_templates/. ~/.local/share/godot/export_templates/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ "$3" != "" ]
 | 
					if [ "$3" != "" ]
 | 
				
			||||||
@ -25,7 +25,7 @@ cd "$GITHUB_WORKSPACE/$5"
 | 
				
			|||||||
godot --headless --${mode} "$2" $GITHUB_WORKSPACE/build/${SubDirectoryLocation:-""}$1
 | 
					godot --headless --${mode} "$2" $GITHUB_WORKSPACE/build/${SubDirectoryLocation:-""}$1
 | 
				
			||||||
echo "Build Done"
 | 
					echo "Build Done"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
echo ::set-output name=build::build/${SubDirectoryLocation:-""}
 | 
					echo build=build/${SubDirectoryLocation:-""} >> $GITHUB_OUTPUT
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ "$4" = "true" ]
 | 
					if [ "$4" = "true" ]
 | 
				
			||||||
@ -34,6 +34,6 @@ then
 | 
				
			|||||||
    mkdir -p $GITHUB_WORKSPACE/package
 | 
					    mkdir -p $GITHUB_WORKSPACE/package
 | 
				
			||||||
    cd $GITHUB_WORKSPACE/build
 | 
					    cd $GITHUB_WORKSPACE/build
 | 
				
			||||||
    zip $GITHUB_WORKSPACE/package/artifact.zip ${SubDirectoryLocation:-"."} -r
 | 
					    zip $GITHUB_WORKSPACE/package/artifact.zip ${SubDirectoryLocation:-"."} -r
 | 
				
			||||||
    echo ::set-output name=artifact::package/artifact.zip
 | 
					    echo artifact=package/artifact.zip >> $GITHUB_OUTPUT
 | 
				
			||||||
    echo "Done"
 | 
					    echo "Done"
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user