Skip to content

Commit

Permalink
simplify releases process
Browse files Browse the repository at this point in the history
  • Loading branch information
rr- committed Feb 11, 2021
1 parent bcadfd2 commit 733c5c0
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 7 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
on:
push:
tags:
- 'v?[0-9]*'

name: Publish new release

jobs:
build:
name: Publish new release
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
sudo apt-get install -y gcc-mingw-w64-i686 make
- name: Checkout code
uses: actions/checkout@v2
- name: Build project
run: |
make build
7z a release.zip ./bin/tombati.exe ./build/TR1Main.dll TR1Main.json
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Extract tag name
id: get_version
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)
- name: Upload Release Asset
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 }}
asset_path: release.zip
asset_name: TR1Main-${{ steps.get_version.outputs.VERSION }}.zip
asset_content_type: application/zip
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@ This is a dynamic library for the classic Tomb Raider I game (TombATI version).
The purpose of the library is to reimplement all the routines performed by the
game and enhance the gameplay with new options.

This project is inspired by Arsunt's [TR2Main](https://github.com/Arsunt/TR2Main/) project.
This project is inspired by Arsunt's
[TR2Main](https://github.com/Arsunt/TR2Main/) project.

## Getting Started
## Installing

For TR1Main to work, you will need a patched `tombati.exe` from
[here](https://github.com/rr-/TR1Main/tree/master/bin). Then you should
download TR1Main.dll from [releases](https://github.com/rr-/TR1Main/releases).
Both files should be put in your game folder. Then you can launch the game by
running the patched `tombati.exe`.
Get a copy of the latest release from
[here](https://github.com/rr-/TR1Main/releases) and unpack the contents to your
game directory. Make sure you overwrite existing files.

## Configuring

Expand Down

0 comments on commit 733c5c0

Please sign in to comment.