Skip to content

Commit

Permalink
Trying to fix gh actions again
Browse files Browse the repository at this point in the history
  • Loading branch information
StaringLongingly committed Aug 24, 2024
1 parent f1e35ee commit 2ad4b45
Showing 1 changed file with 5 additions and 57 deletions.
62 changes: 5 additions & 57 deletions .github/workflows/game_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,6 @@ on:
- v*

jobs:
commit_log:
runs-on: ubuntu-latest
outputs:
commit_log: ${{ steps.changelog.outputs.commit_log }}
steps:
- name: 🛎 Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: 📋 Get Changes between Tags
id: changelog
run: |
git fetch --tags
latest_tag=$(git describe --tags --abbrev=0)
changelog=$(git log $latest_tag..HEAD --oneline)
echo "::set-output name=commit_log::${changelog}"
web:
runs-on: ubuntu-latest
permissions:
Expand Down Expand Up @@ -136,30 +118,16 @@ jobs:
path: game_windows.zip

release:
needs: [web, linux, windows, commit_log]
needs: [web, linux, windows]
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
- name: Do a pretty commit <3
uses: actions/checkout@v2
uses: bullrich/commit-autotag@main
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
id: get_branch
run: echo "BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

- name: Download Web artifacts
uses: actions/download-artifact@v3
Expand All @@ -176,26 +144,6 @@ jobs:
with:
name: game_windows

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.GitVersion_MajorMinorPatch }}
release_name: "Version ${{ env.GitVersion_MajorMinorPatch }}"
body: |
## Release Notes for Version ${{ env.GitVersion_MajorMinorPatch }}
### Commits:
${{ needs.commit_log.outputs.commit_log }}
### Additional Information:
As always thanks for playing!
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 2ad4b45

Please sign in to comment.