Skip to content

Commit

Permalink
go linux back
Browse files Browse the repository at this point in the history
  • Loading branch information
jqk committed Sep 9, 2023
1 parent 9973998 commit 4e1de1a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ jobs:
# 因为不同平台用的内容相同,所以也可以使用 env 定义在外层,但集中一起更直观。
artifactname: "fdc"
goarch: amd64
# - goos: linux
# artifactext: ""
# os: ubuntu-latest
# artifactname: "fdc"
# goarch: amd64
- goos: linux
artifactext: ""
os: ubuntu-latest
artifactname: "fdc"
goarch: amd64

steps:
- name: Get Tag Version
Expand Down Expand Up @@ -65,13 +65,13 @@ jobs:
- name: Packaging
# 即使在 windows 中执行 github action,也不需要提前安装 zip/tar,已内置。
# 以下针对 program_version 的警告可忽略,只要保证前面确实在环境变量中有所定义。
# 注意最后将 config.yaml 也打入包中。
run: |
cd file-diff-cli
zip -r ${{ matrix.artifactname }}-${{ matrix.goos }}-${{ matrix.goarch }}-${{ env.program_version }}.zip ${{ matrix.artifactname }}${{ matrix.artifactext }}
zip -r ${{ matrix.artifactname }}-${{ matrix.goos }}-${{ matrix.goarch }}-${{ env.program_version }}.zip ${{ matrix.artifactname }}${{ matrix.artifactext }} config.yaml
- name: Create GitHub release from tag
uses: softprops/action-gh-release@v1
with:
files: |
file-diff-cli/config.yaml
file-diff-cli/*.zip

0 comments on commit 4e1de1a

Please sign in to comment.