Bilby/.gitea/workflows/windows.yaml

24 lines
926 B
YAML
Raw Normal View History

2024-08-08 22:36:32 +08:00
name: Windows CI
on: [push]
jobs:
build:
runs-on: [windows11]
steps:
- name: Checkout code
2024-08-10 12:38:50 +08:00
uses: actions/checkout@v4
2024-10-02 16:07:08 +08:00
- name: Generate Changelog
run: |
$current_tag = git describe --tags --abbrev=0
$previous_tag = git describe --tags --abbrev=0 $(git rev-list --tags --skip=1 --max-count=1)
Write-Output "Commits from $previous_tag to $current_tag:"
$log = git log $previous_tag..$current_tag --reverse --pretty=format:"%B" | Out-String
$log_lines = $log -split "`n"
$formatted_log = $log_lines | ForEach-Object { "{0:D2}. {1}" -f ($log_lines.IndexOf($_) + 1), $_ }
$formatted_log | ForEach-Object { Write-Output $_ }
$workspace = $env:GITHUB_WORKSPACE
$formatted_log | Out-File -FilePath "$workspace-CHANGELOG.txt"
2024-08-08 22:36:32 +08:00
- name: Run a one-line script
run: |
echo Hello, world!
2024-08-10 12:32:28 +08:00
resources/build.ps1 build