File tree Expand file tree Collapse file tree 1 file changed +33
-9
lines changed
Expand file tree Collapse file tree 1 file changed +33
-9
lines changed Original file line number Diff line number Diff line change @@ -11,17 +11,41 @@ jobs:
1111 node-version : ' 12.x'
1212 - run : |
1313 npm ci
14- mkdir dist
1514 npm run build
16- cp package.json dist
17- cp action.yml dist
18- cp README.md dist
19- - run : |
20- git checkout --orphan build_branch
2115 git config user.email "ros-tooling@users.noreply.github.com"
2216 git config user.name "ROS Tooling [bot]"
23- git add --force dist
24- git commit --no-verify -m "$commitmsg" --only dist
25- git push origin --no-verify HEAD:refs/tags/build/${{github.sha}}
17+ - name : Upload build as orphan ref
18+ run : |
19+ git checkout --orphan build_branch
20+ git commit --no-verify -m "$commitmsg" --only dist/index.js action.yml package.json README.md
21+ git push origin --no-verify HEAD:refs/tags/staging1/${{github.sha}}
2622 env :
2723 commitmsg : " Autobuild\n\n GitHub-Workflow: ${{ github.workflow }}"
24+ - name : Upload build as artifact
25+ uses : actions/upload-artifact@v2
26+ with :
27+ name : build
28+ path : |
29+ dist/index.js
30+ action.yml
31+ package.json
32+ README.md
33+ - name : Upload build as release
34+ uses : actions/create-release@v1
35+ id : release
36+ env :
37+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
38+ with :
39+ tag_name : ${{ github.ref }}
40+ release_name : autobuild for ${{github.sha}}
41+ draft : true
42+ - name : npm pack
43+ id : npm-pack
44+ run : echo ::set-output name=file::$(npm pack)
45+ - name : Upload Release Assets
46+ uses : actions/upload-release-asset@v1
47+ env :
48+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
49+ with :
50+ upload_url : ${{ steps.release.outputs.upload_url }}
51+ asset_path : steps.npm-pack.outputs.file
You can’t perform that action at this time.
0 commit comments