Skip to content

Pre-release

Pre-release #6

Workflow file for this run

name: Pre-release
env:
PROJECT_NAME: StarRailTools
on:
workflow_dispatch:
jobs:
build:
defaults:
run:
shell: powershell
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup PDM
uses: pdm-project/setup-pdm@v4
with:
python-version: 3.11
cache: true
- name: Install dependencies
run: pdm sync --with release
- name: Build package
run: |
pdm run release_d
- name: Get version
run: |
echo "project-version=$(pdm show --version)" >> $env:GITHUB_ENV
- name: Generate package name
run: |
echo "file-name=${{ env.PROJECT_NAME }}_${{ env.project-version }}_DEBUG" >> $env:GITHUB_ENV
- name: Rename folder
run: |
Move-Item -Path .\dist\${{ env.PROJECT_NAME }} -Destination ${{ env.file-name }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.file-name }}
path: |
${{ env.file-name }}
overwrite: true