Skip to content

Add release github action (untested) #1

Add release github action (untested)

Add release github action (untested) #1

Workflow file for this run

name: Release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
release:

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

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

You have an error in your yaml syntax on line 9
runs-on: ubuntu-latest
name: Release
steps:
# Store the version, stripping any v-prefix
- name: Write release version
run: |
VERSION=${GITHUB_REF_NAME#v}
echo Version: $VERSION
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v3
- name: Install zig
uses: mlugg/setup-zig@v2
with:
version: 0.14.0
- name: Build
run: make release VERSION=${VERSION}
- name: Create Release Archive
uses: thedoctor0/zip-release@0.7.5
with:
type: 'zip'
directory: ./zig-out/
filename: ../OpenTitus-${VERSION}.zip
- name: Release
uses: softprops/action-gh-release@v2
with:
files: OpenTitus-${VERSION}.zip