Skip to content

docs: update README.md #51

docs: update README.md

docs: update README.md #51

Workflow file for this run

# Copyright 2025 clavinjune/serve
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: ci
on:
pull_request:
branches: [ main ]
push:
tags: [ 'v*' ]
jobs:
ci:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.23.4
- uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: check
if: github.event_name == 'pull_request'
run: make check
- uses: docker/login-action@v3
if: startsWith(github.ref, 'refs/tags/v') && github.event_name == 'push'
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- if: startsWith(github.ref, 'refs/tags/v') && github.event_name == 'push'
run: |
mkdir -p src/
brew install upx
make ci/release
- uses: actions/upload-artifact@v4
if: startsWith(github.ref, 'refs/tags/v') && github.event_name == 'push'
with:
path: dist/*