Skip to content

Merge pull request #8 from marcopollivier/feat/ui-ssr #2

Merge pull request #8 from marcopollivier/feat/ui-ssr

Merge pull request #8 from marcopollivier/feat/ui-ssr #2

Workflow file for this run

name: On release push
on:
push:
tags:
- "v*"
env:
ENVIRONMENT: "prod"
GIT_USERNAME: ${{ github.actor }}
GIT_EMAIL: "[email protected]"
PA_TOKEN: ${{ secrets.GHA_PAT }}
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set output
id: vars
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
- name: Login to Heroku Container registry
run: heroku container:login
- name: Build and push
run: heroku container:push -a ${{ secrets.HEROKU_APP_NAME }} web --arg VERSION=${{ steps.vars.outputs.tag }}
- name: Release
run: heroku container:release -a ${{ secrets.HEROKU_APP_NAME }} web