Skip to content

Commit

Permalink
fix: ci error
Browse files Browse the repository at this point in the history
  • Loading branch information
fy0 authored Sep 7, 2023
1 parent 3288747 commit 170bd58
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/auto-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -416,17 +416,27 @@ jobs:
with:
name: sealdice-core_${{ env.PROJECT_VERSION }}_${{ matrix.goos }}_${{ matrix.goarch }}
path: .

- name: Set Archive Extension Default
run: |
echo "AEXT=tar" >> $GITHUB_ENV;
echo "AEXTF=tar.gz" >> $GITHUB_ENV;
- name: Set Archive Extension Windows
if: matrix.goos == 'windows'
run: |
echo "AEXT=zip" >> $GITHUB_ENV;
echo "AEXTF=zip" >> $GITHUB_ENV;
- name: Archive Release
uses: thedoctor0/[email protected]
with:
type: 'zip'
path: sealdice-core_${{ env.PROJECT_VERSION }}_${{ matrix.goos }}_${{ matrix.goarch }}
filename: sealdice-core_${{ env.PROJECT_VERSION }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip
type: ${{ env.AEXT }}
filename: sealdice-core_${{ env.PROJECT_VERSION }}_${{ matrix.goos }}_${{ matrix.goarch }}.${{ env.AEXTF }}
exclusions: '*.git* /*node_modules/* .editorconfig'

- name: Upload
uses: actions/upload-artifact@v3
with:
name: sealdice_${{ env.PROJECT_VERSION }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip
name: sealdice_${{ env.PROJECT_VERSION }}_${{ matrix.goos }}_${{ matrix.goarch }}.${{ env.AEXTF }}
path: .

clear-temp-artifact:
Expand Down

0 comments on commit 170bd58

Please sign in to comment.