Skip to content

Commit bd3702d

Browse files
committed
test
1 parent 17e25e3 commit bd3702d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/releace.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,27 @@ jobs:
3737
ln -s -f SUMMARY.md README.md
3838
gitbook pdf
3939
40+
4041
deploy:
4142
runs-on: ubuntu-latest
4243
needs: build
4344
steps:
45+
- name: Create Release
46+
id: create_release
47+
uses: actions/create-release@v1
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
50+
with:
51+
tag_name: ${{ github.ref }}
52+
release_name: Release ${{ github.ref }}
53+
draft: false
54+
prerelease: false
4455
- name: Upload Release PDF Asset
4556
id: upload-release-asset
4657
uses: actions/upload-release-asset@v1
4758
env:
4859
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
4960
with:
61+
upload_url: ${{ steps.create_release.outputs.id }}
5062
asset_path: book.pdf
5163
asset_name: book.pdf

0 commit comments

Comments
 (0)