add new gh workflows / most of it
This commit is contained in:
80
.github/workflows/publish.yaml
vendored
Normal file
80
.github/workflows/publish.yaml
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
name: publish
|
||||
on:
|
||||
release:
|
||||
types: published
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
release_tag:
|
||||
required: true
|
||||
description: the tag to release for
|
||||
default: ""
|
||||
jobs:
|
||||
compile:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: make compile
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: bin
|
||||
path: bin/
|
||||
# release_deb:
|
||||
# runs-on: ubuntu-latest
|
||||
# needs: compile
|
||||
# steps:
|
||||
# - uses: actions/download-artifact@v4
|
||||
# with:
|
||||
# name: bin
|
||||
# path: ${{github.workspace}}/bin
|
||||
# - if: ${{!env.ACT}}
|
||||
# uses: softprops/action-gh-release@v2
|
||||
# with:
|
||||
# tag_name: ${{github.event.release.tag_name || github.event.inputs.release_tag}}
|
||||
# files: bin/coinflip
|
||||
# fail_on_unmatched_files: true
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
# - if: ${{env.ACT}}
|
||||
# uses: actions/upload-artifact@v4
|
||||
# with:
|
||||
# path: bin/coinflip
|
||||
# release_aur-bin:
|
||||
# runs-on: ubuntu-latest
|
||||
# needs: compile
|
||||
# steps:
|
||||
# - uses: actions/download-artifact@v4
|
||||
# with:
|
||||
# name: bin
|
||||
# path: ${{github.workspace}}/bin
|
||||
# - if: ${{!env.ACT}}
|
||||
# uses: softprops/action-gh-release@v2
|
||||
# with:
|
||||
# tag_name: ${{github.event.release.tag_name || github.event.inputs.release_tag}}
|
||||
# files: bin/coinflip
|
||||
# fail_on_unmatched_files: true
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
# - if: ${{env.ACT}}
|
||||
# uses: actions/upload-artifact@v4
|
||||
# with:
|
||||
# path: bin/coinflip
|
||||
release_bin:
|
||||
runs-on: ubuntu-latest
|
||||
needs: compile
|
||||
steps:
|
||||
- if: ${{!env.ACT}}
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: bin
|
||||
path: ${{github.workspace}}/bin
|
||||
- uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
tag_name: ${{github.event.release.tag_name || github.event.inputs.release_tag}}
|
||||
files: bin/coinflip
|
||||
fail_on_unmatched_files: true
|
||||
env:
|
||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
- if: ${{env.ACT}}
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
path: bin/coinflip
|
||||
Reference in New Issue
Block a user