Skip to content

try with chrome this time #90

try with chrome this time

try with chrome this time #90

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4.1.6
- name: Build
run: ./build.bat
- name: Generate build infos
run: |
"URL: ${{ github.server_url }}/${{ github.repository }}" | Out-File INFOS.txt
"Commit URL: ${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}" | Out-File -Append INFOS.txt
"Triggered by: ${{ github.actor }}" | Out-File -Append INFOS.txt
"Date: $(Get-Date) (US-format, UTC)" | Out-File -Append INFOS.txt
"Commit SHA: ${{ github.sha }}" | Out-File -Append INFOS.txt
"Branch/Tag: ${{ github.ref_name }}" | Out-File -Append INFOS.txt
# BRANCH TRIGGERED ONLY
# Nightly binaries on push/pull requests
- name: Upload binaries as zip artifact
uses: actions/upload-artifact@v4.3.3
if: ${{ github.ref_type == 'branch' }}
with:
name: Binaries @ ${{ github.sha }}
path: |
README.md
dist/
INFOS.txt
if-no-files-found: error
# TAG TRIGGERED ONLY
- uses: actions/setup-node@v4.0.2
if: ${{ github.ref_type == 'tag' }}
with:
node-version: 20.14.0
- uses: browser-actions/setup-chrome@v1.7.1
if: ${{ github.ref_type == 'tag' }}
with:
chrome-version: 126
install-chromedriver: true
- name: Render README to PDF
if: ${{ github.ref_type == 'tag' }}
run: |
npm install md-to-pdf@5.2.4
Get-ChildItem . -include **.md -Recurse | %{ npx md-to-pdf $_.FullName }
- name: Zip it for release
if: ${{ github.ref_type == 'tag' }}
run: |
Remove-Item dist -include *.md -Recurse
Compress-Archive -Path "dist/", "INFOS.txt", "README.pdf" -DestinationPath "./old-games-steam-launcher_${{ github.sha }}.zip"
# Release on version tag
- name: Create release on tag
uses: softprops/action-gh-release@v2.0.5
if: ${{ github.ref_type == 'tag' }}
with:
name: ${{ github.ref_name }} @ Old Games Steam Launchers
fail_on_unmatched_files: true
generate_release_notes: true
files: "old-games-steam-launcher_${{ github.sha }}.zip"