-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (41 loc) · 1.27 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
on:
push:
tags:
- "*"
jobs:
prep:
runs-on: ubuntu-latest
steps:
- name: Get Version
id: get_version
run: |
echo "Tag name from GITHUB_REF_NAME: $GITHUB_REF_NAME"
echo "Tag name from github.ref_name: ${{ github.ref_name }}"
build-python:
needs: prep
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.12'
- run: python3 -m pip install --upgrade build && python3 -m build
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
name: detect-droid-artifacts
path: /home/runner/work/droid/droid/dist/detect_droid-*.tar.gz
if-no-files-found: error
- name: Checkout
uses: actions/checkout@v4
- name: Release
uses: softprops/action-gh-release@v1
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
name: Release ${{ github.ref_name }}
draft: true
prerelease: false
fail_on_unmatched_files: true