Skip to content

Making two stages

Making two stages #12

Workflow file for this run

name: Build and Release
on:
push:
tags:
- 'v*'
permissions:
id-token: write
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build and package application
run: |
TAG_NAME="${{ github.ref_name }}"
TARGET_VERSION="${TAG_NAME#v}"
./build.sh "$TARGET_VERSION" /tmp/out
- name: Upload Release Artifact
uses: actions/upload-artifact@v4
with:
name: VmChamp-linux-${{ github.ref_name }}-amd64
path: /tmp/out/VmChamp
retention-days: 1
release:
needs: build
steps:
- name: Release
uses: softprops/action-gh-release@v2

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

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

You have an error in your yaml syntax on line 36
with:
files: /tmp/out/VmChamp
body: |
${{ github.event.head_commit.message }}