Skip to content

Commit

Permalink
Merge pull request #51 from pantheon-systems/release-0.3.2
Browse files Browse the repository at this point in the history
Release 0.3.2
  • Loading branch information
CobyPear authored Dec 20, 2023
2 parents 4e4ea9e + 6358865 commit 771d5fd
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 140 deletions.
46 changes: 7 additions & 39 deletions .github/workflows/build-tag-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,42 +15,10 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
# TODO: In the future, with-node should be an optional param in the action.
- name: Build
run: |
npm ci
npm run build
composer install --no-dev -o
- name: Setup
run: |
VERSION=$(cat README.MD| grep 'Stable tag:' | awk '{print $3}')
[[ "$VERSION" != "" ]] || exit 1
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Tag
run: |
echo "Releasing version $VERSION ..."
[[ "$VERSION" != "" ]] || exit 1
git config user.name Pantheon Automation
git config user.email [email protected]
git checkout -b "robot-release-$VERSION"
git add -f assets/* # TODO: In the future, this should be keyed off of a parameter in the action that toggles whether we should build assets.
git add -f vendor/*
git commit -m "Release $VERSION"
git tag "$VERSION"
git push --tags
- name: Release
run: |
node ./scripts/get_release_notes.js ./README.MD >> ./release_notes.md
gh release create $VERSION --title "$VERSION" -F ./release_notes.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

prepare-dev:
name: Prepare next dev release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Update Development Branch
run: bash .bin/prepare-dev.sh
- name: Build, tag, and release
uses: pantheon-systems/plugin-release-actions/build-tag-release@main
with:
gh_token: ${{ secrets.GITHUB_TOKEN }}
build_node_assets: "true"
build_composer_assets: "true"
draft: "false"
5 changes: 4 additions & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@ Tags: comments, spam
Requires at least: 4.5
Tested up to: 6.2.1
Requires PHP: 5.6
Stable tag: 0.3.1
Stable tag: 0.3.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

See the robots hard at work.

## Changelog

### 0.3.2 (20 December 2023)
* Set Counter to 7 [[52](https://github.com/pantheon-systems/plugin-pipeline-example/pull/52)]

### 0.3.1 (20 December 2023)
* Set Counter to 6 [[49](https://github.com/pantheon-systems/plugin-pipeline-example/pull/49)]

Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"test": "tests"
},
"scripts": {
"test": "node --test",
"build": "grunt build",
"watch": "grunt watch",
"lint:js": "grunt jshint"
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: comments, spam
Requires at least: 4.5
Tested up to: 6.2.1
Requires PHP: 5.6
Stable tag: 0.3.1
Stable tag: 0.3.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -68,6 +68,9 @@ directory take precedence. For example, `/assets/screenshot-1.png` would win ove

== Changelog ==

= 0.3.2 (20 December 2023) =
* Set Counter to 7 [[52](https://github.com/pantheon-systems/plugin-pipeline-example/pull/52)]

= 0.3.1 (20 December 2023) =
* Set Counter to 6 [[49](https://github.com/pantheon-systems/plugin-pipeline-example/pull/49)]

Expand Down
6 changes: 3 additions & 3 deletions rossums-universal-robots.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Author URI: pantheon.io
* Text Domain: rossums-universal-robots
* Domain Path: /languages
* Version: 0.3.1
* Version: 0.3.2
*
* @package Rossums_Universal_Robots
*/
Expand All @@ -17,7 +17,7 @@
*
* @since 0.3.0
*/
define( 'RUR_VERSION', '0.3.1' );
define( 'RUR_VERSION', '0.3.2' );

/**
* Returns an int. It's a feature.
Expand All @@ -26,7 +26,7 @@
* @since 0.1.1
*/
function rur_counter() {
return 6;
return 7;
}

/**
Expand Down
23 changes: 0 additions & 23 deletions scripts/get_release_notes.js

This file was deleted.

24 changes: 0 additions & 24 deletions scripts/tests/fixtures/dev.md

This file was deleted.

24 changes: 0 additions & 24 deletions scripts/tests/fixtures/release.md

This file was deleted.

24 changes: 0 additions & 24 deletions scripts/tests/get_release_notes.test.js

This file was deleted.

0 comments on commit 771d5fd

Please sign in to comment.