Upload assets on release created
This commit is contained in:
parent
cad4ca4ff2
commit
c09cc7949a
5
.github/workflows/publish.yml
vendored
5
.github/workflows/publish.yml
vendored
@ -13,6 +13,11 @@ jobs:
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: '3.x'
|
||||
- name: Install Ubuntu Dependencies
|
||||
run: >
|
||||
sudo apt-get update -q && sudo apt-get install
|
||||
--no-install-recommends -y xvfb python3-dev python3-gi
|
||||
python3-gi-cairo gir1.2-gtk-3.0 libgirepository1.0-dev libcairo2-dev
|
||||
- name: Install Poetry
|
||||
uses: dschep/install-poetry-action@v1.3
|
||||
with:
|
||||
|
22
.github/workflows/release.yml
vendored
22
.github/workflows/release.yml
vendored
@ -1,28 +1,15 @@
|
||||
name: Create Release
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
release:
|
||||
types: [created, edited]
|
||||
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Get the version
|
||||
id: get_version
|
||||
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ github.ref }}
|
||||
release_name: Release ${{ github.ref }}
|
||||
draft: true
|
||||
prerelease: false
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
@ -51,4 +38,3 @@ jobs:
|
||||
with:
|
||||
files: 'dist/*'
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
release-tag: ${{ steps.get_version.outputs.VERSION }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user