1. The work of the editors has been rewritten, which allows you to ed… #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: BuildAndPublish | |
on: push | |
jobs: | |
build: | |
name: Build for ${{ matrix.os }} ${{ matrix.arch }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: windows-latest | |
arch: x86 | |
- os: windows-latest | |
arch: x64 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Restore | |
run: nuget restore | |
- name: Build | |
run: dotnet build --configuration debug | |
- name: Get file version | |
uses: mathiasvr/[email protected] | |
id: version | |
with: | |
run: strings Output/Debug/ujlptr_subedit.exe | egrep '^[0-9]+\.[0-9]+\.[0-9]+$' | |
- name: Сreating an archive for Windows ${{ matrix.arch }} | |
if: matrix.os == 'windows-latest' | |
run: cd Output/Debug ; New-Item -Path 'UJLPTRSubEditor' -ItemType Directory -Force ; Copy-Item -Path 'ujlptr_subedit.exe' -Destination UJLPTRSubEditor/ -Force ; Copy-Item -Path 'FilesOffsetsForDecode.cfg' -Destination UJLPTRSubEditor/ -Force ; Copy-Item 'Content' -Recurse UJLPTRSubEditor/ -Force ; Compress-Archive -Path UJLPTRSubEditor -Destination Windows_${{ matrix.arch }}.zip -Force | |
- name: Publishing a release for Windows ${{ matrix.arch }} | |
if: matrix.os == 'windows-latest' | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: Output/Debug/Windows_${{ matrix.arch }}.zip | |
asset_name: ${{ matrix.asset_name }} | |
overwrite: true | |
release_name: Um Jammer Lammy & Parappa The Rapper Subtitle Editor ${{ steps.version.outputs.stdout }} | |
body: ${{ github.event.head_commit.message }} | |
tag: ${{ steps.version.outputs.stdout }} |