Skip to content

Commit

Permalink
{ci} Fix release asset names (attempt #2)
Browse files Browse the repository at this point in the history
  • Loading branch information
asmaloney committed Jun 6, 2022
1 parent 3275296 commit 441b090
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,14 @@ jobs:
goarch: arm64

steps:
- name: Get repo & tag
- name: Get Release Info
run: |
echo "RELEASE_TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
echo "REPOSITORY_NAME=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
echo "OS_NAME=${{ matrix.goos }}" >> $GITHUB_ENV
- name: OS darwin
if: matrix.goos == 'darwin'
run: echo "OS_NAME=macOS" >> $GITHUB_ENV
- name: OS not darwin
if: matrix.goos != 'darwin'
run: echo "OS_NAME=${{ matrix.goos }}" >> $GITHUB_ENV
- uses: actions/checkout@v3
- uses: wangyoucao577/[email protected]
with:
Expand All @@ -34,4 +32,4 @@ jobs:
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
extra_files: doc examples scripts CHANGELOG.md CITATION.cff CONTRIBUTING.md LICENSE README.md
asset_name: '${REPOSITORY_NAME}-${RELEASE_TAG}-${{ env.OS_NAME }}-${{ matrix.goarch }}'
asset_name: '${{ env.REPOSITORY_NAME }}-${{ env.RELEASE_TAG }}-${{ env.OS_NAME }}-${{ matrix.goarch }}'

0 comments on commit 441b090

Please sign in to comment.