Update main.yml

This commit is contained in:
陈杰松 2020-05-07 21:53:30 +08:00 committed by GitHub
parent af09adb590
commit f26faa0a89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,7 +47,7 @@ jobs:
- name: 打包静态资源
uses: actions/upload-artifact@master
with:
name: statik.zip
name: statics.zip
path: ./assets/build/
- name: 嵌入静态资源
@ -68,20 +68,7 @@ jobs:
export GOOS=linux
go build -a -o ./bin/cloudreve_$VERSION_$GOOS_$GOARCH -ldflags " -X 'github.com/HFO4/cloudreve/pkg/conf.BackendVersion=$VERSION' -X 'github.com/HFO4/cloudreve/pkg/conf.LastCommit=$COMMIT_SHA'"
#- name: 编译windows_amd64
# run: |
# export GOARCH=amd64
# export CGO_ENABLED=1
# export GOOS=windows
# go build -a -o ./bin/cloudreve_$VERSION_$GOOS_$GOARCH -ldflags " -X 'github.com/HFO4/cloudreve/pkg/conf.BackendVersion=$VERSION' -X 'github.com/HFO4/cloudreve/pkg/conf.LastCommit=$COMMIT_SHA'"
#- name: 编译darwin_amd64
# run: |
# export GOARCH=amd64
# export CGO_ENABLED=1
# export GOOS=darwin
# go build -a -o ./bin/cloudreve_$VERSION_$GOOS_$GOARCH -ldflags " -X 'github.com/HFO4/cloudreve/pkg/conf.BackendVersion=$VERSION' -X 'github.com/HFO4/cloudreve/pkg/conf.LastCommit=$COMMIT_SHA'"
- name: 打包二进制文件
uses: actions/upload-artifact@master
with: