Skip to content

Commit

Permalink
Release 3.0.1 - Fixes #2270 (#2273)
Browse files Browse the repository at this point in the history
* Change file name in deploy script

* Update changelog and version

* Additional terminus -> terminus.phar filename corrections

* Rename terminus.phar to terminus in package linux job

* Update unit tests bin file name

Co-authored-by: Brian Weaver <[email protected]>
  • Loading branch information
John Spellman and namespacebrian authored Dec 8, 2021
1 parent 3418568 commit 7cf89ad
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/3x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ jobs:
- name: Phar Build
run: composer phar:build
- name: permissions
run: chmod +x ./terminus
run: chmod +x ./terminus.phar
- name: Save terminus.phar as artifact
uses: actions/upload-artifact@v2
with:
name: terminus-phar
path: terminus
path: terminus.phar
if-no-files-found: error

functional:
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:
- name: Release
uses: softprops/action-gh-release@v1
with:
files: terminus
files: terminus.phar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
- name: Full Composer Install
run: composer install
- name: Prepare needed folder and fix permissions
run: mkdir -p ~/.terminus/cache/tokens && chmod +x ./terminus
run: mkdir -p ~/.terminus/cache/tokens && mv ./terminus.phar ./terminus && chmod +x ./terminus
- name: Passegers, gather ye packages
run: composer bundle:linux
- name: Save terminus deb as artifact
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Change Log
All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org)

## 3.0.1 - 2021-12-08

### Fixed
- Change file name in deploy script (#2270)

## 3.0.0 - 2021-12-08

### Added
Expand Down
7 changes: 3 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,13 @@
"build": "@phar:build",
"test": "@test:functional",
"phar:build": [
"rm -Rf ./terminus",
"rm -Rf ./terminus.phar",
"php -d phar.readonly=Off vendor/bin/phar-composer.phar build .",
"mv terminus.phar terminus",
"chmod +x terminus"
"chmod +x terminus.phar"
],
"phar:install": [
"rm -rf /usr/local/bin/terminus || true",
"mv ./terminus /usr/local/bin/terminus"
"mv ./terminus.phar /usr/local/bin/terminus"
],
"phar:update": [
"@phar:build",
Expand Down
2 changes: 1 addition & 1 deletion config/constants.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
---

# App
TERMINUS_VERSION: '3.0.1-dev'
TERMINUS_VERSION: '3.0.1'

# Connectivity
TERMINUS_HOST: 'terminus.pantheon.io'
Expand Down
2 changes: 1 addition & 1 deletion tests/config/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
}
}

const TERMINUS_BIN_FILE = './terminus';
const TERMINUS_BIN_FILE = './terminus.phar';
chmod(TERMINUS_BIN_FILE, 0700);

if ($token) {
Expand Down

0 comments on commit 7cf89ad

Please sign in to comment.