Update release.yaml to run on merge to branch (5/edge) (#277) #140
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
name: Release to latest/edge | |
on: | |
push: | |
branches: | |
- 5/edge | |
jobs: | |
ci-tests: | |
uses: ./.github/workflows/ci.yaml | |
secrets: | |
CHARMHUB_TOKEN: "${{ secrets.CHARMHUB_TOKEN }}" | |
AWS_ACCESS_KEY: "${{ secrets.AWS_ACCESS_KEY }}" | |
AWS_SECRET_KEY: "${{ secrets.AWS_SECRET_KEY }}" | |
GCP_ACCESS_KEY: "${{ secrets.GCP_ACCESS_KEY }}" | |
GCP_SECRET_KEY: "${{ secrets.GCP_SECRET_KEY }}" | |
build: | |
name: Build charm | |
uses: canonical/data-platform-workflows/.github/workflows/build_charm_without_cache.yaml@v5 | |
with: | |
charmcraft-snap-channel: "latest/edge" | |
release: | |
name: Release charm | |
needs: | |
- ci-tests | |
- build | |
uses: canonical/data-platform-workflows/.github/workflows/release_charm.yaml@v5 | |
with: | |
channel: 5/edge | |
artifact-name: ${{ needs.build.outputs.artifact-name }} | |
secrets: | |
charmhub-token: ${{ secrets.CHARMHUB_TOKEN }} | |
permissions: | |
contents: write # Needed to create GitHub release |