Skip to content

fix assets

fix assets #10

Workflow file for this run

name: publish
on:
workflow_dispatch:
push:
branches:
- 'release-*'
- 'master'
- 'main'
tags:
- 'v*'
- '!pkg*'
jobs:
publish:
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref_type == 'tag'
steps:
- run: |
gh release create ${{ github.ref_name }} --title "Release ${{ github.ref_name }}" --generate-notes -R $GITHUB_REPOSITORY
env:
GH_TOKEN: ${{ github.token }}
upload-assets:
runs-on: ubuntu-latest
requires: publish

Check failure on line 24 in .github/workflows/publish.yaml

View workflow run for this annotation

GitHub Actions / publish

Invalid workflow file

The workflow is not valid. .github/workflows/publish.yaml (Line: 24, Col: 5): Unexpected value 'requires'
name: Upload release assets
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.22
check-latest: true
- name: Build Installer
run: make build-installer IMG=ghcr.io/hyperspike/valkey-operator:${{ github.ref_name }}
- name: Upload dist/install.yaml to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/install.yaml
asset_name: install.yaml
tag: ${{ github.ref }}
overwrite: true