Skip to content

Commit

Permalink
ci: fix release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
TheUnderScorer committed Mar 20, 2024
1 parent a6c1282 commit e342e92
Showing 1 changed file with 2 additions and 45 deletions.
47 changes: 2 additions & 45 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,51 +11,8 @@ jobs:
uses: fingerprintjs/dx-team-toolkit/.github/workflows/release-server-sdk.yml@v1
with:
language: php
language-version: '7.3'
language-version: '8.3'
prepare-command: |
composer install -q --profile --ignore-platform-reqs --no-interaction --no-ansi --no-scripts --no-suggest --prefer-dist
secrets:
GH_RELEASE_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }}


name: Release

on:
push:
branches:
- main
- develop

jobs:
release:
name: Release Version
runs-on: "ubuntu-latest"
environment: production

steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
- uses: actions/setup-java@v3
with:
distribution: 'zulu' # See 'Supported distributions' for available options
java-version: '11'

- uses: shivammathur/setup-php@v2
with:
php-version: "7.3"
coverage: none
tools: composer:v2

- name: Install Composer Dependencies
run: composer install -q --profile --ignore-platform-reqs --no-interaction --no-ansi --no-scripts --no-suggest --prefer-dist

- name: Install Yarn dependencies
run: yarn install --cwd=release

- name: Release
run: ./release/node_modules/.bin/semantic-release --extends ./release/.releaserc.js
env:
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }}
HUSKY: 0
GH_RELEASE_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }}

0 comments on commit e342e92

Please sign in to comment.