Skip to content

Commit 546b34f

Browse files
authored
Update main.yml
1 parent d393a03 commit 546b34f

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

.github/workflows/main.yml

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,32 @@ jobs:
3535

3636
# Runs a set of commands using the runners shell
3737
- name: Npm build
38-
run: |
39-
npm run build
38+
run: npm run build
39+
40+
# Runs a set of commands using the runners shell
41+
- name: Zip disk folder
42+
run: zip -r release.zip ./dist/LeetcodeSessionManager
43+
44+
- name: 'Upload Build Artifacts'
45+
uses: actions/upload-artifact@v2
46+
with:
47+
name: dist
48+
path: ./release.zip
49+
50+
release-content:
51+
name: 'Create GitHub Release'
52+
runs-on: ubuntu-latest
53+
needs: [ build ]
54+
env:
55+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
steps:
57+
- name: 'Download Presentation Artifacts'
58+
uses: actions/download-artifact@v2
59+
with:
60+
name: dist
61+
- name: 'Create GitHub Release'
62+
uses: softprops/action-gh-release@v1
63+
with:
64+
files: ./release.zip
65+
tag_name: v${{ github.run_number }}
66+
name: Release V${{ github.run_number }}

0 commit comments

Comments
 (0)