Constant PACKAGE_YML
Source const PACKAGE_YML: &str = r#"name: Release
on:
workflow_dispatch:
jobs:
package:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
file:
- { path: src/main.rl, name: program }
runs-on: ${{ matrix.os }}
steps:
- uses: rl-lang/rl-package@main
with:
file: ${{ matrix.file.path }}
output: ${{ matrix.file.name }}
release:
needs: package
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: release-${{ github.run_number }}
name: Release ${{ github.run_number }}
files: artifacts/**/*
"#;