Skip to content

feat: add TeamName configuration and implement team member checks for… #1

feat: add TeamName configuration and implement team member checks for…

feat: add TeamName configuration and implement team member checks for… #1

Workflow file for this run

name: Build and Release
on:
push:
branches:
- master
tags:
- 'v*'
workflow_dispatch:
jobs:
build:
name: Build (linux-amd64)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET 8
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Publish (linux-x64, self-contained, single file)
run: |
dotnet publish \
-c Release \
-r linux-x64 \
--self-contained true \
-p:PublishSingleFile=true \
-p:PublishTrimmed=false \
-o ./publish
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: abaci-bot-linux-amd64
path: ./publish/abaci-bot
release:
name: Create GitHub Release
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
permissions:
contents: write
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: abaci-bot-linux-amd64
path: ./dist
- name: Make binary executable
run: chmod +x ./dist/abaci-bot
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: ./dist/abaci-bot
generate_release_notes: true