Files
InnkeeperBot/.gitea/workflows/build.yaml
MatteoSchiff 51fa77b84b
All checks were successful
Build artifact / build (push) Successful in 18s
Build artifact / release (push) Successful in 23s
workflow: go-action requires go
2024-03-13 14:46:50 +01:00

47 lines
948 B
YAML

name: Build artifact
run-name: Build from ${{ gitea.actor }} 🚀
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: InnkeeperBot
path: ./InnkeeperBot
release:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/download-artifact@v2
with:
name: InnkeeperBot
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21
- name: Release artifact
id: use-go-action
uses: https://gitea.com/actions/release-action@main
with:
files: |-
InnkeeperBot
api_key: '${{secrets.RELEASE_TOKEN}}'