Skip to content

Create and Upload Release Artifact #4

Create and Upload Release Artifact

Create and Upload Release Artifact #4

Workflow file for this run

on:
release:
types: [created]
name: Create and Upload Release Artifact
jobs:
generate:
name: Create release-artifacts
runs-on: ubuntu-latest
steps:
- name: Get the release version
id: get_version
run: echo "BINARY_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.21.x'
- name: Build
run: scripts/build.sh
- name: Test
run: scripts/test.sh
- name: Package the Release Artifacts
run: tar -zcf deliciousbookmarks-${{ BINARY_VERSION }}-linux-x86.tar.gz -C bin bmserver bmimporter

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

View workflow run for this annotation

GitHub Actions / Create and Upload Release Artifact

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 25, Col: 14): Unrecognized named-value: 'BINARY_VERSION'. Located at position 1 within expression: BINARY_VERSION
- name: Upload the Artifacts
uses: skx/github-action-publish-binaries@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: 'deliciousbookmarks-*'