Skip to content

Merge pull request #1 from bombsquad-community/dev #7

Merge pull request #1 from bombsquad-community/dev

Merge pull request #1 from bombsquad-community/dev #7

Workflow file for this run

name: Release Workflow
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Bump Version
id: bump_version
uses: anothrNick/[email protected]
with:
default_bump: minor
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: false
- name: Zip Files for Windows
run: |
zip -r ${{ github.workspace }}/release_windows.zip ba_data lib ba_root && \
(cd windows && zip -r ${{ github.workspace }}/release_windows.zip *)
working-directory: ${{ github.workspace }}
- name: Zip Files for Linux
run: |
zip -r ${{ github.workspace }}/release_linux.zip ba_data ba_root && \
(cd linux-x86_64 && zip -r ${{ github.workspace }}/release_linux.zip *)
working-directory: ${{ github.workspace }}
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
files: |
release_windows.zip
release_linux.zip
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ steps.bump_version.outputs.tag }}
- name: Update Release Notes
run: echo "::set-output name=body::$(cat CHANGELOG.md)"
id: get_changelog
if: success() && steps.create_release.outputs.release_id