Skip to content

Commit

Permalink
fix: Build process
Browse files Browse the repository at this point in the history
  • Loading branch information
seebeen committed Jun 18, 2024
1 parent b84e7cb commit 8727a9e
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 140 deletions.
33 changes: 17 additions & 16 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
/.github export-ignore
/docs export-ignore
/tests export-ignore
/.codeclimate.yml export-ignore
/.editorconfig export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/CHANGELOG.md export-ignore
/.github export-ignore
/docs export-ignore
/tests export-ignore
/.codeclimate.yml export-ignore
/.editorconfig export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/CHANGELOG.md export-ignore
/CODE_OF_CONDUCT.md export-ignore
/composer.lock export-ignore
/CONTRIBUTING.md export-ignore
/LICENSE export-ignore
/README.md export-ignore
/SECURITY.md export-ignore
/package.json export-ignore
/.phpcs.xml export-ignore
/phpunit.xml export-ignore
/composer.lock export-ignore
/CONTRIBUTING.md export-ignore
/LICENSE export-ignore
/README.md export-ignore
/SECURITY.md export-ignore
/package.json export-ignore
/.phpcs.xml export-ignore
/phpunit.xml export-ignore
/.releaserc export-ignore
35 changes: 25 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: Release
name: CI
on:
workflow_dispatch:
push:
branches:
- master
- develop
- alpha
- beta

jobs:
release:
name: Release
Expand All @@ -14,12 +17,24 @@ jobs:
with:
fetch-depth: 0
token: ${{ secrets.OBLAK_BOT_TOKEN }}
- name: Publish a composer package
uses: better-php-actions/publish-composer-package@v1
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
id: gpg
with:
package_slug: "wp-asset-loader"
package_name: "WP Asset Loader"
with_gpg: true
gpg_key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
release_token: ${{ secrets.OBLAK_BOT_TOKEN }}
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
git_config_global: true
git_user_signingkey: true
git_commit_gpgsign: true
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
with:
extra_plugins: |
@semantic-release/github
@semantic-release/exec
env:
GIT_AUTHOR_NAME: ${{ steps.gpg.outputs.name}}
GIT_AUTHOR_EMAIL: ${{ steps.gpg.outputs.email}}
GIT_COMMITTER_NAME: ${{ steps.gpg.outputs.name}}
GIT_COMMITTER_EMAIL: ${{ steps.gpg.outputs.email}}
GITHUB_TOKEN: ${{ secrets.OBLAK_BOT_TOKEN }}
27 changes: 27 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"branches": [
"master"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/exec",
{
"prepareCmd": "zip -r '/tmp/release.zip' ./src README.md"
}
],
[
"@semantic-release/github",
{
"assets": [
{
"path": "/tmp/release.zip",
"name": "wp-asset-loader-${nextRelease.version}.zip",
"label": "WP Asset Loader v${nextRelease.version}"
}
]
}
]
]
}
114 changes: 0 additions & 114 deletions CHANGELOG.md

This file was deleted.

0 comments on commit 8727a9e

Please sign in to comment.