Skip to content

Re-enable share and download on IIIF viewer #50

Re-enable share and download on IIIF viewer

Re-enable share and download on IIIF viewer #50

name: CD - experiment/image-viewer (platform.sh)
on:
workflow_dispatch:
push:
branches:
- experiment/image-viewer
paths:
# Host config
- '.plaform/**'
- '.platform.app.yaml'
- 'gunicorn.conf.py'
# Python config
- 'poetry.lock'
- 'pyproject.toml'
# NPM config
- 'package.json'
- 'package-lock.json'
- 'webpack.config.js'
# App changes
- 'config/**'
- 'sass/**'
- 'scripts/**'
- 'templates/**'
- 'etna/**'
jobs:
# ci:
# name: CI
# uses: ./.github/workflows/_tests.yml
# with:
# python-version: ${{ vars.CI_PYTHON_VERSION }}
# poetry-version: ${{ vars.CI_POETRY_VERSION }}
deploy:
runs-on: ubuntu-latest
# needs: ci
steps:
- uses: actions/checkout@v3
- name: Extract branch name
run: echo "BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- uses: axelerant/platformsh-deploy-action@v1
with:
project-id: ${{ secrets.PLATFORM_PROJECT_ID }}
cli-token: ${{ secrets.PLATFORM_CLI_TOKEN }}
ssh-private-key: ${{ secrets.PLATFORM_SSH_KEY }}
force-push: true
environment-name: expimage-viewer
# notify-slack:
# runs-on: ubuntu-latest
# needs: deploy
# steps:
# - uses: actions/checkout@v3
# - uses: rtCamp/action-slack-notify@v2
# env:
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
# SLACK_TITLE: "A deployment to expimage-viewer is complete"