diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..863555bf7 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 diff --git a/README.md b/README.md index 130cc505c..44c1db62e 100644 --- a/README.md +++ b/README.md @@ -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