mirror of
https://github.com/D4M13N-D3V/godot_template.git
synced 2025-03-14 01:54:59 +00:00
v0.0.1 (#1)
This commit is contained in:
parent
9e4bd93b64
commit
48bee4ebeb
68
.github/workflows/game_web_ci.yml
vendored
68
.github/workflows/game_web_ci.yml
vendored
@ -7,7 +7,7 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- v*
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
web:
|
web:
|
||||||
@ -18,7 +18,7 @@ jobs:
|
|||||||
image: barichello/godot-ci:4.1.2
|
image: barichello/godot-ci:4.1.2
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Move export templates into position
|
- name: Move export templates into position
|
||||||
run: |
|
run: |
|
||||||
@ -45,6 +45,15 @@ jobs:
|
|||||||
user_name: "github-ci[bot]"
|
user_name: "github-ci[bot]"
|
||||||
user_email: "github-actions[bot]@users.noreply.github.com"
|
user_email: "github-actions[bot]@users.noreply.github.com"
|
||||||
commit_message: "UPDATE GITHUB PAGES"
|
commit_message: "UPDATE GITHUB PAGES"
|
||||||
|
|
||||||
|
- name: Zip Web artifacts
|
||||||
|
run: zip -r game_web.zip build/web
|
||||||
|
|
||||||
|
- name: Upload Web artifacts
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: game_web
|
||||||
|
path: game_web.zip
|
||||||
linux:
|
linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
@ -55,7 +64,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Move export templates into position
|
- name: Move export templates into position
|
||||||
run: |
|
run: |
|
||||||
@ -71,10 +80,10 @@ jobs:
|
|||||||
run: zip -r game_linux.zip build/linux
|
run: zip -r game_linux.zip build/linux
|
||||||
|
|
||||||
- name: Upload Linux artifacts
|
- name: Upload Linux artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: game_linux
|
name: game_linux
|
||||||
path: build/linux/game_linux.zip
|
path: game_linux.zip
|
||||||
windows:
|
windows:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
@ -85,7 +94,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Move export templates into position
|
- name: Move export templates into position
|
||||||
run: |
|
run: |
|
||||||
@ -101,40 +110,48 @@ jobs:
|
|||||||
run: zip -r game_windows.zip build/windows
|
run: zip -r game_windows.zip build/windows
|
||||||
|
|
||||||
- name: Upload windows artifacts
|
- name: Upload windows artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: game_windows
|
name: game_windows
|
||||||
path: build/windows/game_windows.zip
|
path: game_windows.zip
|
||||||
release:
|
release:
|
||||||
needs: [web, linux, windows]
|
needs: [web, linux, windows]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set up GitVersion
|
||||||
|
uses: gittools/actions/gitversion/setup@v0.9.15
|
||||||
|
with:
|
||||||
|
versionSpec: '5.x'
|
||||||
|
|
||||||
|
- name: Execute GitVersion
|
||||||
|
uses: gittools/actions/gitversion/execute@v0.9.15
|
||||||
|
with:
|
||||||
|
useConfigFile: true
|
||||||
|
configFilePath: GitVersion.yml
|
||||||
|
|
||||||
- name: Get branch name
|
- name: Get branch name
|
||||||
id: get_branch
|
id: get_branch
|
||||||
run: echo "BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV
|
run: echo "BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Download artifacts
|
- name: Download artifacts
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: game_web
|
name: game_web
|
||||||
path: build/web
|
|
||||||
|
|
||||||
- name: Download Linux artifacts
|
- name: Download Linux artifacts
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: game_linux
|
name: game_linux
|
||||||
path: build/linux
|
|
||||||
|
|
||||||
- name: Download Windows artifacts
|
- name: Download Windows artifacts
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: game_windows
|
name: game_windows
|
||||||
path: build/windows
|
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
@ -142,21 +159,24 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
tag_name: v${{ env.GODOT_VERSION }}-${{ env.BRANCH_NAME }}
|
tag_name: env.GitVersion_MajorMinorPatch
|
||||||
release_name: Godot v${{ env.GODOT_VERSION }} Release - ${{ env.BRANCH_NAME }}
|
release_name: env.GitVersion_MajorMinorPatch
|
||||||
body: |
|
body: |
|
||||||
Release notes for Godot v${{ env.GODOT_VERSION }} on branch ${{ env.BRANCH_NAME }}.
|
Release notes for env.GitVersion_MajorMinorPatch.
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: true
|
||||||
|
|
||||||
|
- name: test
|
||||||
|
run: ls
|
||||||
|
|
||||||
- name: Upload Release Asset
|
- name: Upload Web Release Asset
|
||||||
id: upload-release-asset
|
id: upload-release-asset
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: ./build/web/*
|
asset_path: game_web.zip
|
||||||
asset_name: Godot_Game_Web.zip
|
asset_name: Godot_Game_Web.zip
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
||||||
|
|
||||||
@ -167,7 +187,7 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: ./build/linux/*
|
asset_path: game_linux.zip
|
||||||
asset_name: Godot_Game_Linux.zip
|
asset_name: Godot_Game_Linux.zip
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
||||||
|
|
||||||
@ -178,6 +198,6 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: ./build/windows/*
|
asset_path: game_windows.zip
|
||||||
asset_name: Godot_Game_Windows.zip
|
asset_name: Godot_Game_Windows.zip
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
||||||
|
10
GitVersion.yml
Normal file
10
GitVersion.yml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
assembly-versioning-scheme: MajorMinorPatch
|
||||||
|
mode: ContinuousDelivery
|
||||||
|
branches: {}
|
||||||
|
ignore:
|
||||||
|
sha: []
|
||||||
|
merge-message-formats: {}
|
||||||
|
commit-message-incrementing: Enabled
|
||||||
|
major-version-bump-message: "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\\([\\w\\s-]*\\))?(!:|:.*\\n\\n((.+\\n)+\\n)?BREAKING CHANGE:\\s.+)"
|
||||||
|
minor-version-bump-message: "^(feat)(\\([\\w\\s-]*\\))?:"
|
||||||
|
patch-version-bump-message: "^(build|chore|ci|docs|fix|perf|refactor|revert|style|test)(\\([\\w\\s-]*\\))?:"
|
Loading…
x
Reference in New Issue
Block a user