-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (40 loc) · 1.22 KB
/
create-prerelease.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
name: Create Pre-Release
on:
workflow_dispatch:
push:
branches: ["release"]
pull_request:
branches: ["release"]
permissions:
contents: write
jobs:
build:
name: Build Pre-Release
runs-on: ubuntu-latest
steps:
-
name: Checkout code
uses: actions/checkout@v2
-
uses: actions/setup-python@v4
with:
python-version: '3.10'
-
name: Build Release
run: python3 -m pip install .
-
name: Create current version based on time
id: versioning
run: |
echo "::set-output name=version::$(date +'%Y-%m-%d' --utc)"
-
name: Create Pre-Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: unstable-${{steps.versioning.outputs.version}}
release_name: Unstable-${{steps.versioning.outputs.version}}
draft: false
prerelease: true