Debug build #10
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: Debug build | |
on: | |
push: | |
branches: | |
- v2 | |
paths: | |
- '**.go' | |
workflow_dispatch: ~ | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.22' | |
check-latest: true | |
cache: true | |
- name: Build | |
run: | | |
sudo timedatectl set-timezone Asia/Shanghai | |
go mod tidy | |
bash build.sh | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Music163bot-Go | |
path: Music163bot-Go |