Skip to content

Commit

Permalink
build: update release workflow for notes and beta
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudhgray committed Oct 26, 2024
1 parent 2983e24 commit aea4c3c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 11 deletions.
28 changes: 23 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,22 @@ jobs:
if: matrix.os != 'windows-latest'
run: |
cd tahini
VERSION=${{ github.ref_name }}
SAFEVERSION=${VERSION//./-}
if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then
mv tahini tahini-linux
mv tahini tahini-linux-${SAFEVERSION}
elif [[ "${{ matrix.os }}" == "macos-latest" ]]; then
mv tahini tahini-macos
mv tahini tahini-macos-${SAFEVERSION}
fi
- name: Rename binary for unique names on Windows
if: matrix.os == 'windows-latest'
run: |
cd tahini
$VERSION = "${{ github.ref_name }}"
$SAFEVERSION = $VERSION -replace '\.', '-'
Rename-Item -Path "tahini.exe" -NewName "tahini-windows-$SAFEVERSION.exe"
- name: Upload binary
uses: actions/upload-artifact@v4
with:
Expand All @@ -57,14 +67,22 @@ jobs:
with:
path: .

- name: Set Version Variable
id: set_version
run: |
# Replace dots with hyphens in the version name
VERSION="${{ github.ref_name }}"
VERSION=${VERSION//./-}
echo "VERSION=${VERSION}" >> $GITHUB_ENV
- name: Create Release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
prerelease: ${{ contains(github.ref, 'beta') }}
files: |
tahini-ubuntu-latest/tahini-linux
tahini-macos-latest/tahini-macos
tahini-windows-latest/tahini.exe
tahini-ubuntu-latest/tahini-linux-${{ env.VERSION }}
tahini-macos-latest/tahini-macos-${{ env.VERSION }}
tahini-windows-latest/tahini-windows-${{ env.VERSION }}.exe
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,18 +72,15 @@ Planned features include an import system, standard library, and cross-language

You can download the latest prebuilt binaries for your operating system from the [Releases](https://github.com/anirudhgray/tahini-lang/releases) page. Follow these steps to get started quickly.

1. Download the Latest Binary
- Linux: [tahini-ubuntu-latest](https://github.com/anirudhgray/tahini-lang/releases/download/v0.0.1/tahini-linux)
- macOS: [tahini-macos-latest](https://github.com/anirudhgray/tahini-lang/releases/download/v0.0.1/tahini-macos)
- Windows: [tahini-windows-latest.exe](https://github.com/anirudhgray/tahini-lang/releases/download/v0.0.1/tahini.exe)
1. Download the Latest Binary for your OS: [Latest Release](https://github.com/anirudhgray/tahini-lang/releases/latest)

2. Make the Binary Executable (Linux/macOS)
```bash
chmod +x tahini-linux # For Linux
chmod +x tahini-macos # For macOS
```

3. Run Tahini (start up the REPL)
1. Run Tahini (start up the REPL)
```bash
./tahini-linux # For Linux
./tahini-macos # For macOS
Expand All @@ -92,7 +89,7 @@ Welcome to Tahini. Type in your code below:
>
```

4. Run Tahini Code (execute a Tahini script from file)
1. Run Tahini Code (execute a Tahini script from file)
```bash
./tahini-linux path/to/file.tah # For Linux
./tahini-macos path/to/file.tah # For macOS
Expand Down

0 comments on commit aea4c3c

Please sign in to comment.