Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,5 +122,5 @@ jobs:
- uses: actions/cache@v4
id: restore-build
with:
path: stacker
key: ${{ inputs.build-id }}
path: stacker-${{ matrix.platform }}
key: ${{ inputs.build-id }}-${{ matrix.platform }}
14 changes: 10 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,27 @@ jobs:
codecov_token: ${{ secrets.CODECOV_TOKEN }}
release:
name: "Tagged Release"
runs-on: ubuntu-24.04
strategy:
fail-fast: true
matrix:
platform:
- linux-amd64 # ubuntu 24.04
- linux-arm64 # ubuntu 24.04-arm64
runs-on: ${{ matrix.platform == 'linux-amd64' && 'ubuntu-24.04' || matrix.platform == 'linux-arm64' && 'ubuntu-24.04-arm' }}
# needs ci for the cached stacker binary
needs: [build-id, ci]
steps:
- uses: actions/cache@v4
id: restore-build
with:
path: stacker
key: ${{needs.build-id.outputs.build-id}}
path: stacker-${{ matrix.platform }}
key: ${{needs.build-id.outputs.build-id}}-${{ matrix.platform }}
- if: github.event_name == 'release' && github.event.action == 'published'
name: Publish artifacts on releases
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: stacker
file: stacker-${{ matrix.platform }}
tag: ${{ github.ref }}
overwrite: true
file_glob: true
Loading