Skip to content

Small tweak and remove repeated comments #4

Small tweak and remove repeated comments

Small tweak and remove repeated comments #4

Workflow file for this run

name: Publish release zip
on:
push:
tags:
- 'OFDLV*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup dotnet 8.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.x
# You can test your matrix by printing the current dotnet version
- name: Display dotnet version
run: dotnet --version
- name: Extract version
id: version
run: |
VERSION="${GITHUB_REF_NAME#OFDLV}"
echo "Version: $VERSION"
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
- name: Run build
run: |
dotnet publish -p Version=${{ steps.version.outputs.version }} --property WarningLevel=0 -c Release -r win10-x64 -o outwin
dotnet publish -p Version=${{ steps.version.outputs.version }} --property WarningLevel=0 -c Release -r linux-x64 -o outlin
cp ./OF\ DL/rules.json outwin/
chmod +x ./outlin/OF\ DL
cd outwin
../outlin/OF\ DL --non-interactive || true
../outlin/OF\ DL --non-interactive || true
mkdir -p cdm/devices/chrome_1610
zip ../OFDLV${{ steps.version.outputs.version }}.zip OF\ DL.exe e_sqlite3.dll rules.json config.json auth.json cdm
cd ..
- name: release
uses: actions/create-release@v1
id: create_release
with:
draft: true
prerelease: false
release_name: ${{ steps.version.outputs.version }}
tag_name: ${{ github.ref }}
env:
GITHUB_TOKEN: ${{ github.token }}
- name: upload Windows zip
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./OFDLV${{ steps.version.outputs.version }}.zip
asset_name: OFDLV${{ steps.version.outputs.version }}.zip
asset_content_type: application/zip