Skip to content

Create Release

Create Release #3

name: Create Release
on:
workflow_dispatch:
inputs:
version:
required: true
type: string
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.22.2"
- name: Build
run: go build -v -o bin/
- name: Upload Artifact
uses: actions/[email protected]
with:
name: DDPLS-linux
path: bin/*
retention-days: 1
if-no-files-found: error
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.22.2"
- name: Build
run: go build -v -o bin/
- name: Upload Artifact
uses: actions/[email protected]
with:
name: DDPLS-windows
path: bin/*
retention-days: 1
if-no-files-found: error
release:
needs: [build-linux, build-windows]
runs-on: ubuntu-latest
steps:
- name: Download a Build Artifact
uses: actions/[email protected]
- name: Create Release
uses: softprops/action-gh-release@v2
with:
tag_name: v${{ inputs.version }}
name: Release v${{ inputs.version }}
body: 'Gehört zum Kompilierer Release `<version>`'
draft: true
files: |
DDPLS-linux/DDPLS
DDPLS-windows/DDPLS.exe
fail_on_unmatched_files: true