Skip to content

Commit

Permalink
Remove .snap from zip archive names
Browse files Browse the repository at this point in the history
Rename archive name variables
  • Loading branch information
jpm-canonical committed Jun 6, 2024
1 parent feb762b commit ab928b7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build-and-test-snap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ on:
workflow_dispatch:

env:
SNAP_AMD64: chip-tool_${{ github.run_number}}_amd64.snap
SNAP_ARM64: chip-tool_${{ github.run_number}}_arm64.snap
ARTIFACT_AMD64: chip-tool_${{ github.run_number}}_amd64
ARTIFACT_ARM64: chip-tool_${{ github.run_number}}_arm64

jobs:
build-amd64:
Expand All @@ -28,7 +28,7 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.SNAP_AMD64 }}
name: ${{ env.ARTIFACT_AMD64 }}
path: ${{ steps.snapcraft.outputs.snap }}
if-no-files-found: error

Expand All @@ -44,7 +44,7 @@ jobs:
- name: Download locally built snap
uses: actions/download-artifact@v4
with:
name: ${{ env.SNAP_AMD64 }}
name: ${{ env.ARTIFACT_AMD64 }}

- name: Setup Go
uses: actions/setup-go@v5
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
- name: Download locally built snap
uses: actions/download-artifact@v4
with:
name: ${{ env.SNAP_AMD64 }}
name: ${{ env.ARTIFACT_AMD64 }}

- uses: snapcore/action-publish@v1
env:
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.SNAP_ARM64 }}
name: ${{ env.ARTIFACT_ARM64 }}
path: ${{ steps.build.outputs.snap }}

publish-arm64:
Expand All @@ -118,7 +118,7 @@ jobs:
- name: Download locally built snap
uses: actions/download-artifact@v4
with:
name: ${{ env.SNAP_AMD64 }}
name: ${{ env.ARTIFACT_ARM64 }}

- uses: snapcore/action-publish@v1
env:
Expand Down

0 comments on commit ab928b7

Please sign in to comment.