mirror of
https://github.com/typecho/typecho.git
synced 2025-01-17 20:48:42 +01:00
fix ci build
This commit is contained in:
parent
1d21ecac16
commit
780c3b61f4
14
.github/workflows/Typecho-dev-Ci.yml
vendored
14
.github/workflows/Typecho-dev-Ci.yml
vendored
@ -42,13 +42,19 @@ jobs:
|
||||
cp -r LICENSE.txt index.php install.php admin install usr var build/
|
||||
mkdir build/usr/uploads/
|
||||
chmod 777 build/usr/uploads/
|
||||
touch build/usr/uploads/empty
|
||||
rm -rf build/admin/src
|
||||
cd build && zip -q -r typecho.zip * && mv typecho.zip ../ && cd -
|
||||
- name: Upload a Build Artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
uses: WebFreak001/deploy-nightly@v1.1.0
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
name: typecho
|
||||
path: ./build/
|
||||
upload_url: https://uploads.github.com/repos/typecho/typecho/releases/49532662/assets{?name,label}
|
||||
release_id: 49532662
|
||||
asset_path: ./typecho.zip
|
||||
asset_name: typecho.zip
|
||||
asset_content_type: application/zip
|
||||
max_releases: 1
|
||||
- name: Trigger build
|
||||
run: |
|
||||
curl -XPOST -H "Authorization: token ${{ secrets.WORKFLOW_TOKEN }}" \
|
||||
|
Loading…
x
Reference in New Issue
Block a user