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 3
3
release :
4
4
types : [created]
5
5
6
+ defaults :
7
+ run :
8
+ shell : bash
9
+
10
+ permissions :
11
+ contents : write
12
+
6
13
jobs :
7
14
release :
8
15
name : Deploy Release
@@ -28,17 +35,14 @@ jobs:
28
35
os : windows-latest
29
36
steps :
30
37
- uses : actions/checkout@master
31
- - name : Install hub
32
- run : ci/install-hub.sh ${{ matrix.os }}
33
- shell : bash
34
38
- name : Install Rust
35
39
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
38
43
env :
39
44
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
42
46
pages :
43
47
name : GitHub Pages
44
48
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
44
44
esac
45
45
cd ../..
46
46
47
- if [[ -z " $GITHUB_TOKEN " ]]
47
+ if [[ -z " $GITHUB_ENV " ]]
48
48
then
49
- echo " $GITHUB_TOKEN not set, skipping deploy. "
49
+ echo " GITHUB_ENV not set, run: gh release upload $TAG target/ $asset "
50
50
else
51
- hub release edit -m " " --attach $asset $TAG
51
+ echo " MDBOOK_TAG=$TAG " >> $GITHUB_ENV
52
+ echo " MDBOOK_ASSET=target/$asset " >> $GITHUB_ENV
52
53
fi
You can’t perform that action at this time.
0 commit comments