mirror of
https://github.com/SagerNet/sing-geosite.git
synced 2025-02-06 21:02:41 +08:00
29 lines
574 B
YAML
29 lines
574 B
YAML
name: Build
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: ^1.22
|
|
- name: Build geosite
|
|
id: build
|
|
env:
|
|
NO_SKIP: true
|
|
run: |
|
|
go run -v .
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: geosite.db
|
|
path: geosite.db |