Test publishing using GH actions

This commit is contained in:
Jorge Martín
2025-02-14 14:33:29 +01:00
parent eb80fe9a08
commit 0ce2b20c1d

View File

@@ -1,6 +1,7 @@
name: Build & publish images to the package registry for releases name: Build & publish images to the package registry for releases
on: on:
workflow_dispatch:
release: release:
types: [published] types: [published]
@@ -10,7 +11,7 @@ env:
jobs: jobs:
build_element_call: build_element_call:
if: ${{ github.event_name == 'release' }} # if: ${{ github.event_name == 'release' }}
uses: ./.github/workflows/build-element-call.yaml uses: ./.github/workflows/build-element-call.yaml
with: with:
vite_app_version: ${{ github.event.release.tag_name || github.sha }} vite_app_version: ${{ github.event.release.tag_name || github.sha }}
@@ -21,7 +22,7 @@ jobs:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
publish_tarball: publish_tarball:
needs: build_element_call needs: build_element_call
if: always() if: false
name: Publish tarball name: Publish tarball
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs: outputs:
@@ -53,7 +54,7 @@ jobs:
path: "./element-call-*.tar.gz" path: "./element-call-*.tar.gz"
publish_docker: publish_docker:
needs: publish_tarball needs: publish_tarball
if: always() if: false
permissions: permissions:
contents: write contents: write
packages: write packages: write