Skip to content

Commit

Permalink
update .github/workflows/release.yaml (canonical#558)
Browse files Browse the repository at this point in the history
Co-authored-by: soleng-terraform[bot] <168111096+soleng-terraform[bot]@users.noreply.github.com>
  • Loading branch information
soleng-terraform[bot] authored Oct 1, 2024
1 parent 8942ef5 commit 5bfa932
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,25 @@ jobs:
fail-fast: false
matrix:
runs-on: [[ubuntu-22.04]]
outputs:
snap: ${{ steps.build.outputs.snap }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Complete git history is required to generate the version from git tags.
- uses: canonical/action-build@v1
id: build

- name: Determine system architecture
run: echo "SYSTEM_ARCH=$(uname -m)" >> $GITHUB_ENV
- uses: actions/upload-artifact@v4

- name: Download the built snap from check workflow
uses: actions/download-artifact@v4
with:
name: snap_${{ env.SYSTEM_ARCH }}
path: ${{ steps.build.outputs.snap }}

- name: Find the downloaded snap file
run: echo "SNAP_FILE=$(find . -name "*.snap")" >> $GITHUB_ENV

- uses: snapcore/action-publish@v1
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
with:
snap: ${{ steps.build.outputs.snap }}
snap: ${{ env.SNAP_FILE }}
release: latest/edge

0 comments on commit 5bfa932

Please sign in to comment.