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 24, 2024
1 parent ff0611e commit 25a822f
Showing 1 changed file with 48 additions and 54 deletions.
102 changes: 48 additions & 54 deletions .github/workflows/game_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,58 +11,6 @@ on:
- v*

jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- 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: Generate Release Notes
uses: johnyherangi/create-release-notes@main
id: create-release-notes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Debug (I fucking hate gh actions)
run: |
echo "GitVersion Tag:"
echo "${{env.GitVersion_MajorMinorPatch}}"
echo "Logs:"
echo "${{ steps.create-release-notes.outputs.release-notes }}"
- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{env.GitVersion_MajorMinorPatch}}
release_name: "New ver ${{env.GitVersion_MajorMinorPatch}}"
body: |
### New stuff:
${{ steps.create-release-notes.outputs.release-notes }}
As always thanks for playing!
I love you <33
draft: false
prerelease: true


web:
needs: release
runs-on: ubuntu-latest
Expand Down Expand Up @@ -172,8 +120,8 @@ jobs:
name: game_windows
path: game_windows.zip

release-upload:
needs: [web, linux, windows, release]
release:
needs: [web, linux, windows]
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -193,6 +141,52 @@ jobs:
with:
name: game_windows

- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- 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: Generate Release Notes
uses: johnyherangi/create-release-notes@main
id: create-release-notes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Debug (I fucking hate gh actions)
run: |
echo "GitVersion Tag:"
echo "${{env.GitVersion_MajorMinorPatch}}"
echo "Logs:"
echo "${{ steps.create-release-notes.outputs.release-notes }}"
- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{env.GitVersion_MajorMinorPatch}}
release_name: "New ver ${{env.GitVersion_MajorMinorPatch}}"
body: |
### New stuff:
${{ steps.create-release-notes.outputs.release-notes }}
As always thanks for playing!
I love you <33
draft: false
prerelease: true

- name: Upload Web Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
Expand Down

0 comments on commit 25a822f

Please sign in to comment.