Skip to content

Commit

Permalink
t2
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Sep 1, 2024
1 parent 8c69c2a commit e84b80f
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 60 deletions.
57 changes: 52 additions & 5 deletions .github/workflows/vortex-release-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
- '*'
branches:
- '**release-docs**'
- '**release-installer**'
workflow_run:
workflows:
- 'Vortex - Release installer'
Expand All @@ -24,7 +23,55 @@ concurrency:
cancel-in-progress: true

jobs:
release-docs:

vortex-release-installer:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Cache Composer dependencies
uses: actions/cache@v4
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1

- name: Install dependencies
run: composer install
working-directory: .vortex/installer

- name: Add version
run: |
TAG=${{ github.ref_type == 'tag' && github.ref_name || '' }}
SHA=${{ github.ref_type == 'branch' && github.sha || '' }}
sed -i "s/\"git-tag-ci\": \"dev\"/\"git-tag-ci\": \"${TAG:-${SHA}}\"/g" box.json
working-directory: .vortex/installer

- name: Build PHAR
run: composer build
working-directory: .vortex/installer

- name: Test PHAR
run: ./.build/installer --quiet || exit 1
working-directory: .vortex/installer

- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: vortex-installer
path: .vortex/installer/.build/installer

vortex-release-docs:
needs: vortex-release-installer

environment:
name: github-pages

Expand Down Expand Up @@ -61,15 +108,15 @@ jobs:
composer --working-dir=.utils install
npm run update-variables
git diff --quiet HEAD || { echo "Docs not up-to-date. Run 'cd .vortex && ahoy update-docs' and commit changes."; git diff; exit 1; }
working-directory: '${{ github.workspace }}/.vortex/docs'
working-directory: .vortex/docs

- name: Install dependencies
run: npm install
working-directory: '${{ github.workspace }}/.vortex/docs'
working-directory: .vortex/docs

- name: Build documentation site
run: npm run build
working-directory: '${{ github.workspace }}/.vortex/docs'
working-directory: .vortex/docs

- name: Upload documentation site
uses: actions/upload-pages-artifact@v3
Expand Down
55 changes: 0 additions & 55 deletions .github/workflows/vortex-release-installer.yml

This file was deleted.

1 comment on commit e84b80f

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.