-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from pantheon-systems/release-0.3.2
Release 0.3.2
- Loading branch information
Showing
9 changed files
with
18 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.