Skip to content

Add prerelease from master #119

Add prerelease from master

Add prerelease from master #119

Workflow file for this run

name: Build
on:
push:
branches:
- master
tags:
- 'v*'
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Update submodules
run: git submodule update --init --recursive
- name: Install zig
run: sudo snap install zig --classic --beta
- name: Build
run: |
for target in \
aarch64-linux-musl \
aarch64-macos-none \
x86_64-linux-musl \
x86_64-macos-none
do
zig cc -target "$target" -Os -s -o secret-${target%-*} secret.c
gzip -9 secret-${target%-*}
done
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |

Check failure on line 38 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Build

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 38, Col: 12): Unexpected symbol: '('. Located at position 24 within expression: github.ref_name.replace('v', '')
case "${{ github.ref }}" in
(refs/tags/*)
gh release create "${{ github.ref_name }}" secret-*.gz \
--title "secret ${{ github.ref_name.replace('v', '') }}" \
--draft false --prerelease false ;;
(*)
gh release create "${{ github.sha }}" secret-*.gz \
--title "secret ${{ github.sha }}" \
--draft false --prerelease true ;;
fi