chore: bump and prepare 0.1.9 release #82
Workflow file for this run
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
# Copyright (C) 2017-2023 Smart code 203358507 | |
name: Windows Release | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
windows-release: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Rust setup | |
uses: actions-rs/[email protected] | |
with: | |
toolchain: stable | |
- name: Build | |
run: cargo build --release --features=bundled | |
- name: Sign executables | |
run: | | |
& 'C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x86\signtool.exe' sign /f "resources\certificates\smartcode-20211118-20241118.pfx" /p ${{ secrets.WIN_CERT_PASSWORD }} /v ".\target\release\stremio-service.exe" | |
& 'C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x86\signtool.exe' sign /f "resources\certificates\smartcode-20211118-20241118.pfx" /p ${{ secrets.WIN_CERT_PASSWORD }} /v ".\resources\bin\windows\node.exe" | |
& 'C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x86\signtool.exe' sign /f "resources\certificates\smartcode-20211118-20241118.pfx" /p ${{ secrets.WIN_CERT_PASSWORD }} /v ".\resources\bin\windows\ffmpeg.exe" | |
& 'C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x86\signtool.exe' sign /f "resources\certificates\smartcode-20211118-20241118.pfx" /p ${{ secrets.WIN_CERT_PASSWORD }} /v ".\resources\bin\windows\ffprobe.exe" | |
- name: Zip release for windows | |
uses: vimtor/[email protected] | |
with: | |
files: resources/bin/windows/ffmpeg.exe resources/bin/windows/ffprobe.exe resources/bin/windows/stremio-runtime.exe target/release/stremio-service.exe resources/bin/windows/server.js LICENSE.md | |
dest: stremio-service-windows.zip | |
- name: Installer | |
run: | | |
& 'C:\Program Files (x86)\Inno Setup 6\ISCC.exe' 'setup\StremioService.iss' | |
- name: Sign Installer | |
run: | | |
& 'C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x86\signtool.exe' sign /f "resources\certificates\smartcode-20211118-20241118.pfx" /p ${{ secrets.WIN_CERT_PASSWORD }} /v "StremioServiceSetup.exe" | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }} | |
aws-region: eu-west-1 | |
- name: Upload to Amazon S3 | |
run: | | |
aws s3 cp --acl public-read StremioServiceSetup.exe s3://stremio-artifacts/stremio-service/${{ github.ref_name }}/ | |
- name: Generate RC descriptor | |
run: | | |
node ./generate_descriptor.js --wait-all --tag=${{ github.ref_name }} | |
- name: Get current date | |
id: date | |
run: echo "TODAY_DATE=$(date +'%d %b %Y')" >> $GITHUB_OUTPUT | |
- name: Upload dmg and zip file to release | |
uses: softprops/action-gh-release@v1 | |
with: | |
# Use the same name as all releases! | |
name: Stremio Service ${{ github.ref_name }} (${{ steps.date.outputs.TODAY_DATE }}) | |
draft: true | |
prerelease: false | |
fail_on_unmatched_files: true | |
files: | | |
stremio-service-windows.zip | |
StremioServiceSetup.exe |