This repository has been archived by the owner on Aug 9, 2024. It is now read-only.
Merge pull request #597 from beabee-communityrm/v0.14.x #82
Workflow file for this run
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 | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
check: | |
name: Check | |
uses: ./.github/workflows/check.yml | |
build-push: | |
name: Build and push | |
uses: ./.github/workflows/build-push.yml | |
needs: [check] | |
secrets: inherit | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
needs: [build-push] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
repository: beabee-communityrm/hive-deploy-stack | |
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- run: | | |
git config --global user.name "Deploy bot" | |
git config --global user.email "<>" | |
echo -n ${{ needs.build-push.outputs.version }} > FRONTEND_VERSION | |
./update.sh | |
git add FRONTEND_VERSION docker-compose.yml | |
if ! git diff --quiet --cached; then | |
git commit -m "Deploy frontend ${{ needs.build-push.outputs.version }}" | |
git push | |
fi |