Skip to content

Build and Release

Build and Release #48

Workflow file for this run

name: Release
on:
workflow_run:
workflows: ["Build"]
types:
- completed
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ basename(github.ref) }}

Check failure on line 23 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 23, Col: 21): Unrecognized function: 'basename'. Located at position 1 within expression: basename(github.ref) .github/workflows/release.yml (Line: 24, Col: 25): Unrecognized function: 'basename'. Located at position 1 within expression: basename(github.ref)
release_name: Release ${{ basename(github.ref) }}
draft: false
prerelease: false
- name: Upload Release Assets
id: upload-release-assets
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: |
./tau-linux-aarch64
./tau-linux-x86_64
./tau-macos-aarch64
./tau-macos-x86_64
# Add more artifacts as needed
asset_name: |
tau-linux-aarch64
tau-linux-x86_64
tau-macos-aarch64
tau-macos-x86_64
# Specify corresponding names for the added artifacts
asset_content_type: application/octet-stream