Skip to content

fix akron dmr ammo pickup values #35

fix akron dmr ammo pickup values

fix akron dmr ammo pickup values #35

Workflow file for this run

name: Create PAYDAY mod release
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@main
- name: Archive Mod
run: |
.\.github\7za.exe -tzip a ".\BetterBalancedRebalance.zip" ".\BetterBalancedRebalance"
shell: powershell
- name: Get Version
uses: mathiasvr/[email protected]
id: version
with:
run: |
.\.github\getversion.exe .\BetterBalancedRebalance\mod.txt
shell: powershell
- name: Create New Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.version.outputs.stdout }}
release_name: Better Balanced Rebalance Release
draft: false
prerelease: false
body: |
This release zip is automatically updated on every push. You can ignore the "x commits behind" message.
- name: Upload Mod Zip to Release
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./BetterBalancedRebalance.zip
asset_name: BetterBalancedRebalance.zip
asset_content_type: application/zip
- name: Hash mod and create mod meta file
id: create_meta_file
run: |
$(cat .\.github\meta.json).Replace("%HASH%", $(./.github/hash.exe "./BetterBalancedRebalance").Substring(17)) > ./meta.json
- name: Upload meta file to Release
id: upload-meta-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./meta.json
asset_name: meta.json
asset_content_type: application/json