lobby2/.gitea/workflows/build.yml
Adam Štrauch 367265b5e6
Some checks failed
Tests / test (push) Failing after 11s
Fix
2024-12-08 17:31:23 +01:00

54 lines
1.3 KiB
YAML

name: Build and release
on:
workflow_dispatch:
inputs:
version:
description: 'Version'
required: true
default: 'v0'
jobs:
test:
runs-on: [moon, amd64]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23'
# - name: Install dependencies
# run: |
# sudo apt-get update
# sudo apt-get install -y task
- name: Run tests
run: task test
- name: Build
run: |
task build VERSION=${{ github.event.inputs.version }}
# - name: Upload Release Asset
# uses: actions/upload-release-asset@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ github.event.release.upload_url }}
# asset_path: ./lobby2-${{ github.ref_name }}-amd64
# asset_name: lobby2-${{ github.ref_name }}-amd64
# asset_content_type: application/octet-stream
- uses: actions/forgejo-release@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
direction: upload
tag: ${{ github.event.inputs.version }}
url: https://gitea.ceperka.net
release-dir: bin/
release-notes-assistant: true