fix release action

This commit is contained in:
joyqi 2021-09-08 16:17:55 +08:00
parent a31da6880d
commit 9bd4eaeae8
4 changed files with 16 additions and 8 deletions

View File

@ -4,6 +4,9 @@ root = true
indent_style = space
indent_size = 4
[*.yml]
indent_size = 2
[*.scss]
indent_size = 2

View File

@ -41,7 +41,7 @@ jobs:
- name: Build
run: |
mkdir build
cp -r LICENSE.txt *.php admin install usr var build/
cp -r LICENSE.txt index.php install.php admin install usr var build/
mkdir build/usr/uploads/
chmod 777 build/usr/uploads/
rm -rf build/admin/src

View File

@ -11,8 +11,12 @@ jobs:
uses: actions/checkout@v2
- name: Build
run: |
cd ./tools/
make all
mkdir build
cp -r LICENSE.txt index.php install.php admin install usr var build/
mkdir build/usr/uploads/
chmod 777 build/usr/uploads/
rm -rf build/admin/src
zip -q -r typecho.zip ./build
- name: Create Release
id: create_release
uses: actions/create-release@v1
@ -20,8 +24,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Typecho ${{ github.ref }}
draft: false
release_name: ${{ github.ref }}
draft: true
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
@ -30,6 +34,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./tools/build.tar.gz
asset_name: Typecho-build.tar.gz
asset_content_type: application/gzip
asset_path: ./typecho.zip
asset_name: typecho.zip
asset_content_type: application/zip

View File

@ -93,6 +93,7 @@ if (!defined('__TYPECHO_ROOT_DIR__')) {
* @property bool $feedFullText
* @property int $defaultCategory
* @property bool $frontArchive
* @property array $plugins
*/
class Options extends Base
{