Skip to content

πŸš€ SOberdorfer is releasing #6

πŸš€ SOberdorfer is releasing

πŸš€ SOberdorfer is releasing #6

Workflow file for this run

name: On-Release
run-name: πŸš€ ${{ github.actor }} is releasing ${{ inputs.environment }}
on:
workflow_call:
inputs:
environment:
type: string
required: true
workflow_dispatch:
inputs:
environment:
description: 'Deploy environment'
default: test
type: environment
required: true
push:
branches: [ master ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.sha }}
cancel-in-progress: false
permissions:
id-token: write
contents: read
jobs:
artifact-version:
runs-on: ubuntu-latest
outputs:
package: ${{ steps.package.artifact-version }}
steps:
- name: πŸ“₯ Checkout
uses: actions/checkout@v4
- name: πŸ“¦ Retrieve Artifact-version from package
id: package
run: |
ARTIFACT_VERSION=$(jq -r '.version' package.json)
echo "πŸ“ Retrieved version: $ARTIFACT_VERSION" >> $GITHUB_STEP_SUMMARY
echo "artifact-version=${ARTIFACT_VERSION}-" >> $GITHUB_OUTPUT
build:
if: ${{ github.event_name == 'push' }}
uses: ./.github/workflows/rwf_build.yml
with:
artifact-name: gh-actions-playground
artifact-version: ${{ needs.artifact-version.outputs.package }}
environment: ${{ inputs.environment }}
secrets: inherit
deploy:
uses: ./.github/workflows/rwf_deploy.yml
with:
environment: ${{ inputs.environment }}
artifact-version: ${{ needs.artifact-version.outputs.package }}
secrets: inherit