抓取省市区数据 #670
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "抓取省市区数据" | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
schedule: | |
- cron: "1 15 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.17 | |
- name: run app | |
run: GO111MODULE=off go run spider/go/main.go | |
- name: upload json | |
uses: actions/upload-artifact@v2 | |
with: | |
name: "省市区街道json" | |
path: json/ | |
retention-days: 5 | |
- name: upload sql | |
uses: actions/upload-artifact@v2 | |
with: | |
name: "省市区街道sql" | |
path: sql/ | |
retention-days: 5 |