diff --git a/.github/dependabot.yml b/.github/dependabot.yml index e592118..db8036a 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -29,3 +29,7 @@ updates: day: tuesday target-branch: "develop" open-pull-requests-limit: 99 +- package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: daily \ No newline at end of file diff --git a/.github/workflows/build-tag-release.yml b/.github/workflows/build-tag-release.yml new file mode 100644 index 0000000..cb7babc --- /dev/null +++ b/.github/workflows/build-tag-release.yml @@ -0,0 +1,25 @@ +name: Build, Tag, and Release +on: + push: + branches: + - 'master' + +permissions: + pull-requests: write + contents: write + +jobs: + tag: + name: Tag and Release + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - 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" + generate_release_notes: "true" + draft: "true" \ No newline at end of file diff --git a/.github/workflows/build-tag.yml b/.github/workflows/build-tag.yml deleted file mode 100644 index 62f6ddf..0000000 --- a/.github/workflows/build-tag.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: Build and Tag -on: - push: - branches: - - 'master' - -permissions: - contents: write - -jobs: - wordpress: - name: Release - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Build - run: | - 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 bot@getpantheon.com - git checkout -b "release-$VERSION" - git add -f vendor/* - git commit -m "Release $VERSION" - git tag "$VERSION" - git push --tags - env: - TOKEN: ${{ secrets.GITHUB_TOKEN }}