File tree Expand file tree Collapse file tree 3 files changed +15
-34
lines changed Expand file tree Collapse file tree 3 files changed +15
-34
lines changed Original file line number Diff line number Diff line change 33 release :
44 types : [created]
55
6+ defaults :
7+ run :
8+ shell : bash
9+
10+ permissions :
11+ contents : write
12+
613jobs :
714 release :
815 name : Deploy Release
@@ -28,17 +35,14 @@ jobs:
2835 os : windows-latest
2936 steps :
3037 - uses : actions/checkout@master
31- - name : Install hub
32- run : ci/install-hub.sh ${{ matrix.os }}
33- shell : bash
3438 - name : Install Rust
3539 run : ci/install-rust.sh stable ${{ matrix.target }}
36- shell : bash
37- - name : Build and deploy artifacts
40+ - name : Build asset
41+ run : ci/make-release-asset.sh ${{ matrix.os }} ${{ matrix.target }}
42+ - name : Update release with new asset
3843 env :
3944 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
40- run : ci/make-release.sh ${{ matrix.os }} ${{ matrix.target }}
41- shell : bash
45+ run : gh release upload $MDBOOK_TAG $MDBOOK_ASSET
4246 pages :
4347 name : GitHub Pages
4448 runs-on : ubuntu-latest
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -44,9 +44,10 @@ case $1 in
4444esac
4545cd ../..
4646
47- if [[ -z " $GITHUB_TOKEN " ]]
47+ if [[ -z " $GITHUB_ENV " ]]
4848then
49- echo " $GITHUB_TOKEN not set, skipping deploy. "
49+ echo " GITHUB_ENV not set, run: gh release upload $TAG target/ $asset "
5050else
51- hub release edit -m " " --attach $asset $TAG
51+ echo " MDBOOK_TAG=$TAG " >> $GITHUB_ENV
52+ echo " MDBOOK_ASSET=target/$asset " >> $GITHUB_ENV
5253fi
You can’t perform that action at this time.
0 commit comments