Skip to content

Commit

Permalink
Update game_ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
StaringLongingly authored Aug 21, 2024
1 parent ffa85fb commit f225ee8
Showing 1 changed file with 31 additions and 8 deletions.
39 changes: 31 additions & 8 deletions .github/workflows/game_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,33 @@ on:
- main

jobs:
# -------------------------------------------------------------
# Event `push`: Compare the preceding remote commit -> to the current commit of the main branch
# -------------------------------------------------------------
changed_files:
runs-on: ubuntu-latest
name: Test changed-files
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for the repo

- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v45

- name: List all changed files
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
for file in ${ALL_CHANGED_FILES}; do
echo "$file was changed"
done
- name: List all commits between previous and current commit
run: |
git log --pretty=format:"%h - %an, %ar : %s" HEAD~1..HEAD
web:
runs-on: ubuntu-latest
permissions:
Expand Down Expand Up @@ -54,14 +81,13 @@ jobs:
with:
name: game_web
path: game_web.zip

linux:
runs-on: ubuntu-latest
permissions:
contents: write

container:
image: barichello/godot-ci:4.2.1

steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -84,14 +110,13 @@ jobs:
with:
name: game_linux
path: game_linux.zip

windows:
runs-on: ubuntu-latest
permissions:
contents: write

container:
image: barichello/godot-ci:4.2.1

steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -114,6 +139,7 @@ jobs:
with:
name: game_windows
path: game_windows.zip

release:
needs: [web, linux, windows]
runs-on: ubuntu-latest
Expand All @@ -140,7 +166,7 @@ jobs:
id: get_branch
run: echo "BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV

- name: Download artifacts
- name: Download Web artifacts
uses: actions/download-artifact@v3
with:
name: game_web
Expand All @@ -167,9 +193,6 @@ jobs:
Release notes for ${{env.GitVersion_MajorMinorPatch}}
draft: false
prerelease: true

- name: Changes between Tags
uses: simbo/changes-between-tags-action@v1.0.0

- name: Upload Web Release Asset
id: upload-release-asset
Expand Down

0 comments on commit f225ee8

Please sign in to comment.