Skip to content

Commit

Permalink
fix release action
Browse files Browse the repository at this point in the history
  • Loading branch information
joyqi committed Sep 8, 2021
1 parent a31da68 commit 9bd4eae
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Expand Up @@ -4,6 +4,9 @@ root = true
indent_style = space
indent_size = 4

[*.yml]
indent_size = 2

[*.scss]
indent_size = 2

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Typecho-dev-Ci.yml
Expand Up @@ -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
Expand Down
18 changes: 11 additions & 7 deletions .github/workflows/Typecho-release-Ci.yml
Expand Up @@ -11,17 +11,21 @@ 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
env:
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
Expand All @@ -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
1 change: 1 addition & 0 deletions var/Widget/Options.php
Expand Up @@ -93,6 +93,7 @@
* @property bool $feedFullText
* @property int $defaultCategory
* @property bool $frontArchive
* @property array $plugins
*/
class Options extends Base
{
Expand Down

0 comments on commit 9bd4eae

Please sign in to comment.