Skip to content

Commit

Permalink
Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
johnb432 committed Sep 29, 2024
1 parent 7bf7899 commit 7a25fa5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/hemtt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ on:
pull_request_target:

jobs:
windows:
hemtt:
name: HEMTT
runs-on: windows-latest
steps:
- name: Checkout the source code
Expand Down
19 changes: 10 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
---
name: "tagged-release"
name: tagged-release

on:
push:
tags:
- "v*"

permissions:
contents: write

jobs:
tagged-release:
name: "Tagged Release"
name: Tagged Release
runs-on: windows-latest
steps:
- name: Checkout the source code
Expand All @@ -28,16 +31,14 @@ jobs:
rm -r include\
xcopy /e /h /q pullrequest\addons addons\
xcopy /e /h /q pullrequest\include include\
- name: Run HEMTT build
run: hemtt build
- name: Rename build folder
run: mv .hemttout/build .hemttout/@release
- name: Zip build
run: Compress-Archive .hemttout/@release -Destination zeus_additions_${{ github.ref_name }}.zip
- name: Run HEMTT release
run: hemtt release
- name: Remove 'latest' zip
run: del releases\*latest.zip
- name: Create release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ github.ref_name }}"
prerelease: false
files: zeus_additions_${{ github.ref_name }}.zip
files: releases\

0 comments on commit 7a25fa5

Please sign in to comment.