Skip to content

Commit

Permalink
added tag release deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasBrostrom committed Jul 29, 2024
1 parent c0f2b21 commit 2fd6775
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 5 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/deploy-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Deploy Release
on:
release:
types: [published]

jobs:
release:
runs-on: windows-latest
steps:
- name: Checkout the source code
uses: actions/checkout@v4
- name: Setup HEMTT
uses: arma-actions/hemtt@v1
- name: Run HEMTT release
run: |
hemtt release
Rename-Item release\cav-latest.zip 7CavAddon-${{github.ref_name}}.zip
- name: Upload release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
asset_name: 7CavAddon-${{github.ref_name}}.zip
file: release/7CavAddon-${{github.ref_name}}.zip
12 changes: 7 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,18 @@ jobs:
if: ${{ inputs.environment == 'live' }}
run: |
hemtt release
Get-ChildItem -Path .hemttout\
Get-ChildItem -Path releases\
Get-ChildItem -Path .hemttout\ -ErrorAction SilentlyContinue
Get-ChildItem -Path .release\ -ErrorAction SilentlyContinue
Rename-Item release\cav-latest.zip 7CavAddon-${{github.ref_name}}.zip
Get-ChildItem -Path .release\ -ErrorAction SilentlyContinue
env:
ENVIRONMENT: ${{ inputs.environment }}

- name: Run HEMTT build
if: ${{ inputs.environment == 'dev' }}
run: |
hemtt build
Get-ChildItem -Path .hemttout\
Get-ChildItem -Path releases\
Get-ChildItem -Path .hemttout\ -ErrorAction SilentlyContinue
Get-ChildItem -Path .release\ -ErrorAction SilentlyContinue
env:
ENVIRONMENT: ${{ inputs.environment }}
ENVIRONMENT: ${{ inputs.environment }}

0 comments on commit 2fd6775

Please sign in to comment.