Files
dialog-relations-website/.gitea/workflows/release.yaml
Dominik Polakovics 9720b9328e
Some checks failed
Build / build (push) Successful in 4m16s
Build / deploy-stage (push) Successful in 3m42s
Build / switch-stage (push) Failing after 2m17s
Build / deploy-production (push) Successful in 3m56s
fix: change to apt-get and change cache:flush to release from current, to work on first release
2025-06-26 11:55:16 +02:00

37 lines
1.0 KiB
YAML

name: Release
on:
push:
tags:
- 'v*.*' # Adjust this pattern based on your tagging
env:
PHP_VERSION: '8.3' # set this to the PHP version to use
COMPOSER_ALLOW_SUPERUSER: 1
permissions:
contents: read
jobs:
switch-production:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@7c0b4c8c8ebed23eca9ec2802474895d105b11bc
with:
php-version: ${{ env.PHP_VERSION }}
- name: Run composer install
run: |
composer validate --no-check-publish && composer install --prefer-dist --no-progress --ignore-platform-reqs
- name: Install ssh agent, rsync
run: |
apt-get update
apt-get install -y openssh-client rsync
- name: Switch to release
uses: deployphp/action@v1
with:
deployer-binary: "./bin/dep"
dep: --file=./build/deploy.php release:switch production
private-key: ${{secrets.PROD_KEY}}