Skip to content

chore: test version injection #26

chore: test version injection

chore: test version injection #26

Workflow file for this run

name: Release app
on:
push:
branches: [ prod ]
jobs:
build:
uses: Lomray-Software/vite-ssr-boost/.github/workflows/ssr-boost-build.yml@staging
with:
app-build-args: --unlock-robots
# inject actual version to app
inject-version:
needs: [build]
runs-on: ubuntu-latest
concurrency:
group: ${{ github.ref }}-inject-version
cancel-in-progress: true
steps:
- uses: actions/download-artifact@v3
with:
name: build-artifact
- name: Inject version
uses: jacobtomlinson/gha-find-replace@v3
with:
find: '"APP_VERSION"'
replace: '"5.5.5"'
regex: false
- name: App build
uses: actions/upload-artifact@v3
with:
name: build-artifact
path: ${{ github.workspace }}
# release:
# needs: [build]
# uses: Lomray-Software/vite-ssr-boost/.github/workflows/ssr-boost-release.yml@staging
# with:
# has-release-asset: true
# secrets:
# github-token: ${{ secrets.GITHUB_TOKEN }}
#
# docker-build:
# needs: [build, release]
# uses: Lomray-Software/vite-ssr-boost/.github/workflows/ssr-boost-docker-build.yml@staging
# with:
# registry: ghcr.io
# image-name: ${{ github.repository }}/web
# version: ${{ needs.release.outputs.version }}
# app-build-path: ./build
# secrets:
# github-token: ${{ secrets.GITHUB_TOKEN }}
#
# deploy-aws:
# needs: [docker-build]
# uses: Lomray-Software/vite-ssr-boost/.github/workflows/ssr-boost-deploy-aws.yml@staging
# with:
# image: ${{ needs.docker-build.outputs.image-tag }}
# service: vite-template
# cluster: Development
# task-container-name: web
# secrets:
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# AWS_REGION: ${{ secrets.AWS_REGION }}