Bump versions to 3.3.8 and 3.6.0 (#35) #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file is centrally managed as a template file in https://github.com/canonical/solutions-engineering-automation | |
# To update the file: | |
# - Edit it in the canonical/solutions-engineering-automation repository. | |
# - Open a PR with the changes. | |
# - When the PR merges, the soleng-terraform bot will open a PR to the target repositories with the changes. | |
name: Publish snap | |
on: | |
push: | |
branches: [ main ] | |
release: | |
types: [ published ] | |
jobs: | |
check: | |
uses: ./.github/workflows/check.yaml | |
secrets: inherit | |
release: | |
runs-on: ${{ matrix.runs-on }} | |
needs: check | |
strategy: | |
fail-fast: false | |
matrix: | |
runs-on: [[ubuntu-22.04], [self-hosted, jammy, ARM64]] | |
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 | |
with: | |
name: snap_${{ env.SYSTEM_ARCH }} | |
path: ${{ steps.build.outputs.snap }} | |
- uses: snapcore/action-publish@v1 | |
env: | |
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }} | |
with: | |
snap: ${{ steps.build.outputs.snap }} | |
release: latest/edge |