This repository has been archived by the owner on Jul 7, 2023. It is now read-only.
Merge pull request #31 from supabase/laktek-patch-1 #25
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: docker-publish | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
runs-on: ubuntu-20.04 | |
outputs: | |
published: ${{ steps.semantic.outputs.new_release_published }} | |
version: ${{ steps.semantic.outputs.new_release_version }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Semantic Release | |
id: semantic | |
uses: cycjimmy/semantic-release-action@v3 | |
with: | |
semantic_version: 18 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
publish: | |
needs: | |
- release | |
if: needs.release.outputs.published == 'true' | |
# Call publish explicitly because events from actions cannot trigger more actions | |
uses: ./.github/workflows/publish.yml | |
with: | |
version: v${{ needs.release.outputs.version }} | |
secrets: inherit |