Skip to content

Commit 733c5c0

Browse files
committed
simplify releases process
1 parent bcadfd2 commit 733c5c0

File tree

2 files changed

+50
-7
lines changed

2 files changed

+50
-7
lines changed

.github/workflows/release.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
on:
2+
push:
3+
tags:
4+
- 'v?[0-9]*'
5+
6+
name: Publish new release
7+
8+
jobs:
9+
build:
10+
name: Publish new release
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Install dependencies
14+
run: |
15+
sudo apt-get install -y gcc-mingw-w64-i686 make
16+
- name: Checkout code
17+
uses: actions/checkout@v2
18+
- name: Build project
19+
run: |
20+
make build
21+
7z a release.zip ./bin/tombati.exe ./build/TR1Main.dll TR1Main.json
22+
- name: Create Release
23+
id: create_release
24+
uses: actions/create-release@v1
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
with:
28+
tag_name: ${{ github.ref }}
29+
release_name: Release ${{ github.ref }}
30+
draft: false
31+
prerelease: false
32+
- name: Extract tag name
33+
id: get_version
34+
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)
35+
- name: Upload Release Asset
36+
id: upload-release-asset
37+
uses: actions/upload-release-asset@v1
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
with:
41+
upload_url: ${{ steps.create_release.outputs.upload_url }}
42+
asset_path: release.zip
43+
asset_name: TR1Main-${{ steps.get_version.outputs.VERSION }}.zip
44+
asset_content_type: application/zip

README.md

+6-7
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@ This is a dynamic library for the classic Tomb Raider I game (TombATI version).
44
The purpose of the library is to reimplement all the routines performed by the
55
game and enhance the gameplay with new options.
66

7-
This project is inspired by Arsunt's [TR2Main](https://github.com/Arsunt/TR2Main/) project.
7+
This project is inspired by Arsunt's
8+
[TR2Main](https://github.com/Arsunt/TR2Main/) project.
89

9-
## Getting Started
10+
## Installing
1011

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

1716
## Configuring
1817

0 commit comments

Comments
 (0)