Skip to content

Commit

Permalink
ci: use gh release upload
Browse files Browse the repository at this point in the history
  • Loading branch information
SevereCloud committed Nov 13, 2020
1 parent 58cc8a3 commit 96eb7fb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 21 deletions.
27 changes: 6 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
name: Build

on:
push:
tags:
- v*
release:
types: [published]

jobs:
build:
Expand All @@ -23,22 +22,8 @@ jobs:
- name: Build
run: |
python main.py
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body:
draft: false
prerelease: false
- name: Upload files
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/*
tag: ${{ github.ref }}
overwrite: true
file_glob: true
shell: bash
run: gh release upload ${{ github.event.release.tag_name }} build/*
env:
GITHUB_TOKEN: ${{ github.token }}
1 change: 1 addition & 0 deletions vscode_restclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,4 @@ def handler(schema, build_folder, version):
f"{build_folder}/restclient-vk-api-sandbox",
"zip",
folder_path)
shutil.rmtree(folder_path, ignore_errors=True)

0 comments on commit 96eb7fb

Please sign in to comment.