mirror of
https://github.com/typecho/typecho.git
synced 2025-04-14 06:41:53 +02:00
fix release action
This commit is contained in:
parent
a31da6880d
commit
9bd4eaeae8
@ -4,6 +4,9 @@ root = true
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
|
||||
[*.yml]
|
||||
indent_size = 2
|
||||
|
||||
[*.scss]
|
||||
indent_size = 2
|
||||
|
||||
|
2
.github/workflows/Typecho-dev-Ci.yml
vendored
2
.github/workflows/Typecho-dev-Ci.yml
vendored
@ -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
|
||||
|
18
.github/workflows/Typecho-release-Ci.yml
vendored
18
.github/workflows/Typecho-release-Ci.yml
vendored
@ -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
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user