All checks were successful
Build bang-server / Explore-Gitea-Actions (push) Successful in 13s
30 lines
1.1 KiB
YAML
30 lines
1.1 KiB
YAML
name: Build bang-server
|
|
run-name: ${{ gitea.actor }} is building bang-server
|
|
on: [push]
|
|
|
|
jobs:
|
|
Explore-Gitea-Actions:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- run: echo "The job was automatically triggered by a ${{ gitea.event_name }} event."
|
|
- run: echo "This job is now running on a ${{ runner.os }} server"
|
|
- run: echo "Branch is ${{ gitea.ref }} and repository is ${{ gitea.repository }}."
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v4
|
|
- run: echo "${{ gitea.repository }} repository has been cloned to the runner."
|
|
- run: echo "The workflow is now ready to test your code on the runner."
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: '1.24.4'
|
|
- name: Build the server app
|
|
run: go build bang.go
|
|
- name: List files
|
|
run: ls -lh
|
|
- name: Upload to Release
|
|
uses: https://gitea.com/actions/release-action@main
|
|
with:
|
|
files: |-
|
|
bin/**
|
|
api_key: '${{secrets.RELEASE_TOKEN}}'
|
|
- run: echo "This job's status is ${{ job.status }}." |