-
Notifications
You must be signed in to change notification settings - Fork 13
50 lines (42 loc) · 1.27 KB
/
nightly.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
48
49
50
name: build-wwiser-nightly
on:
push:
branches:
- master
paths: # Run on any code change
- "wwiser/**/*.py"
- "wwiser.py"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
release-new-nightly:
runs-on: windows-2022
steps:
# Checkout your code
- name: Checkout
uses: actions/checkout@v4
# Setup env
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.8'
# Make release version tag
- name: Get Release Version
id: release_version
run: |
$DateString = Get-Date -Format "yyyyMMdd"
echo "wwiser_version=$DateString" >> $env:GITHUB_OUTPUT
# Build app
- name: Build WWiser
run: python build.py ${{ steps.release_version.outputs.wwiser_version }}
# Release nightly
- name: Create GitHub Release
id: create_release
uses: softprops/action-gh-release@v2
with:
files: ./bin/wwiser.pyz
name: ${{ env.WWISER_VERSION}}-nightly
tag_name: latest-nightly
prerelease: true
env:
WWISER_VERSION: v${{ steps.release_version.outputs.wwiser_version }}