Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
Add Github action
Browse files Browse the repository at this point in the history
  • Loading branch information
dalegaard committed Dec 4, 2021
1 parent b306058 commit 3acbb8d
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: release

on:
push:
tags:
- 'release-*'

jobs:
release:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
submodules: false

- name: Cache
uses: actions/cache@v2
with:
key: ${{ hashFiles('.gitmodules') }}
path: |
.git/modules
polyhook
sdk2013
- name: Fetch submodules
run: git submodule update --init --recursive

- name: Add MSBuild
uses: microsoft/[email protected]

- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: 'MSBuild.exe /m "CastingEssentials.sln" "/p:Configuration=Release" "/p:Platform=x86"'

- name: Package
run: |
mv plugin_folder CastingEssentialsRed
powershell.exe "Compress-Archive" "-Path" "CastingEssentialsRed" "-DestinationPath" "CastingEssentialsRed.zip"
- name: Release
uses: softprops/action-gh-release@v1
with:
files: CastingEssentialsRed.zip

0 comments on commit 3acbb8d

Please sign in to comment.