mirror of
				https://github.com/yeslayla/build-godot-action.git
				synced 2025-11-04 16:23:04 +01:00 
			
		
		
		
	Compare commits
	
		
			3 Commits
		
	
	
		
			main
			...
			df2910c7df
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| df2910c7df | |||
| 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
 | 
			
		||||
 | 
			
		||||
Name | Email |
 | 
			
		||||
-----|-------|
 | 
			
		||||
[Layla Manley](https://github.com/yeslayla) | [layla@layla.gg](mailto:layla@layla.gg)
 | 
			
		||||
Name | Email | Twitter |
 | 
			
		||||
-----|-------|---------|
 | 
			
		||||
[Joseph Manley](https://github.com/josephbmanley) | [joseph@cloudsumu.com](mailto:joseph@cloudsumu.com) | [@josephbmanley](https://twitter.com/josephbmanley)
 | 
			
		||||
 | 
			
		||||
## Contributors
 | 
			
		||||
 | 
			
		||||
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)
 | 
			
		||||
[stonedDiscord](https://github.com/stonedDiscord) | |
 | 
			
		||||
[Bioblaze Payne](https://github.com/Bioblaze)|BioblazePayne@gmail.com|[BioblazePayne](https://twitter.com/BioblazePayne)
 | 
			
		||||
 | 
			
		||||
## 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.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 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.
 | 
			
		||||
 | 
			
		||||
Table of Contents:
 | 
			
		||||
@ -44,7 +42,7 @@ jobs:
 | 
			
		||||
          lfs: true
 | 
			
		||||
      - name: Build
 | 
			
		||||
        id: build
 | 
			
		||||
        uses: yeslayla/build-godot-action@v1
 | 
			
		||||
        uses: manleydev/build-godot-action@v1.4.1
 | 
			
		||||
        with:
 | 
			
		||||
          name: example
 | 
			
		||||
          preset: ${{ matrix.platform }}
 | 
			
		||||
@ -84,7 +82,7 @@ Additionally if you are not using a matrix, you can set the export preset as the
 | 
			
		||||
```yaml
 | 
			
		||||
      - name: Build
 | 
			
		||||
        id: build
 | 
			
		||||
        uses: yeslayla/build-godot-action@v1.4.1
 | 
			
		||||
        uses: manleydev/build-godot-action@v1.4.1
 | 
			
		||||
        with:
 | 
			
		||||
          name: example
 | 
			
		||||
          preset: win32
 | 
			
		||||
@ -97,7 +95,7 @@ To change the export name, you can the `name` parameter to whatever you want you
 | 
			
		||||
```yaml
 | 
			
		||||
      - name: Build
 | 
			
		||||
        id: build
 | 
			
		||||
        uses: yeslayla/build-godot-action@v1.4.1
 | 
			
		||||
        uses: manleydev/build-godot-action@v1.4.1
 | 
			
		||||
        with:
 | 
			
		||||
          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
 | 
			
		||||
      - name: Build
 | 
			
		||||
        id: build
 | 
			
		||||
        uses: yeslayla/build-godot-action@v1.4.1
 | 
			
		||||
        uses: manleydev/build-godot-action@v1.4.1
 | 
			
		||||
        with:
 | 
			
		||||
          name: example
 | 
			
		||||
          preset: ${{ matrix.platform }}
 | 
			
		||||
@ -123,7 +121,7 @@ If your project is located in a subdirectory, you can use the `projectDir` to ch
 | 
			
		||||
```yaml
 | 
			
		||||
      - name: Build
 | 
			
		||||
        id: build
 | 
			
		||||
        uses: yeslayla/build-godot-action@v1.4.1
 | 
			
		||||
        uses: manleydev/build-godot-action@v1.4.1
 | 
			
		||||
        with:
 | 
			
		||||
          name: example
 | 
			
		||||
          preset: ${{ matrix.platform }}
 | 
			
		||||
@ -144,7 +142,7 @@ Example:
 | 
			
		||||
 | 
			
		||||
```yaml
 | 
			
		||||
steps:
 | 
			
		||||
- uses: yeslayla/build-godot-action@[VERSION]
 | 
			
		||||
- uses: manleydev/build-godot-action@[VERSION]
 | 
			
		||||
  with:
 | 
			
		||||
    name: godot-project
 | 
			
		||||
    preset: HTML5
 | 
			
		||||
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
name: "Build Godot"
 | 
			
		||||
description: "Build a Godot project for multiple platforms"
 | 
			
		||||
author: yeslayla
 | 
			
		||||
author: josephbmanley
 | 
			
		||||
inputs:
 | 
			
		||||
  name:
 | 
			
		||||
    description: 'Name of the exported binary'
 | 
			
		||||
 | 
			
		||||
@ -3,7 +3,7 @@ set -e
 | 
			
		||||
 | 
			
		||||
# Move godot templates already installed from the docker image to home
 | 
			
		||||
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" != "" ]
 | 
			
		||||
@ -25,7 +25,7 @@ cd "$GITHUB_WORKSPACE/$5"
 | 
			
		||||
godot --headless --${mode} "$2" $GITHUB_WORKSPACE/build/${SubDirectoryLocation:-""}$1
 | 
			
		||||
echo "Build Done"
 | 
			
		||||
 | 
			
		||||
echo ::set-output name=build::build/${SubDirectoryLocation:-""}
 | 
			
		||||
echo build=build/${SubDirectoryLocation:-""} >> $GITHUB_OUTPUT
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
if [ "$4" = "true" ]
 | 
			
		||||
@ -34,6 +34,6 @@ then
 | 
			
		||||
    mkdir -p $GITHUB_WORKSPACE/package
 | 
			
		||||
    cd $GITHUB_WORKSPACE/build
 | 
			
		||||
    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"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user