Skip to content

Commit 683dd59

Browse files
committed
test release job v0.1.0
1 parent 176580a commit 683dd59

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/releace.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
uses: actions/checkout@v2
1616
with:
1717
ref: master
18+
1819
- name: install nodejs
1920
uses: actions/setup-node@v1
2021

@@ -33,31 +34,42 @@ jobs:
3334
book sm
3435
ln -s -f SUMMARY.md README.md
3536
gitbook pdf
37+
mkdir -p path/to/artifact
38+
cp book.pdf path/to/artifact
3639
3740
- name: Upload file
3841
uses: actions/upload-artifact@v2
3942
with:
4043
name: book.pdf
41-
path: ./book.pdf
44+
path: path/to/artifact/book.pdf
4245

4346
deploy:
4447
name: Release file to GitHub Release
4548
runs-on: ubuntu-latest
4649
needs: build
4750
steps:
4851
- name: Download file
52+
id: download
4953
uses: actions/download-artifact@v2
5054
with:
5155
name: book.pdf
56+
path: path/to/artifact
57+
58+
- name: Display structure of downloaded files
59+
run: ls -R
60+
working-directory: path/to/artifact
61+
62+
- name: 'Echo download path'
63+
run: echo ${{steps.download.outputs.download-path}}
5264

5365
- name: Create GitHub Release
5466
id: create_release
5567
uses: actions/create-release@v1
5668
env:
5769
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
5870
with:
59-
tag_name: v0.1.${{ github.run_number }}
60-
release_name: Release v0.1.${{ github.run_number }}
71+
tag_name: v0.1.0
72+
release_name: Release v0.1.0
6173
draft: false
6274
prerelease: false
6375

0 commit comments

Comments
 (0)