dlna server #884
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
name: Latest Build | |
on: | |
push: | |
branches: | |
- '*' | |
tags: | |
- 'v*' | |
jobs: | |
build: | |
name: Build | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macOS-latest, windows-latest] | |
nwjs: ['0.44.5', '0.82.0'] | |
steps: | |
- name: Context | |
env: | |
GITHUB_CONTEXT: ${{ toJson(github) }} | |
run: echo "$GITHUB_CONTEXT" | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- name: Reconfigure git to use HTTP authentication | |
run: > | |
git config --global url."https://github.com/".insteadOf | |
ssh://git@github.com/ | |
- name: Use Node.js 20 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: yarn version | |
run: | | |
yarn version | |
- name: node version | |
run: | | |
node --version | |
- uses: kiriles90/variable-mapper@master | |
with: | |
key: "${{ matrix.os }}" | |
map: | | |
{ | |
"ubuntu-latest": { "platform": "linux", "dist": "linux32,linux64" }, | |
"macOS-latest": { "platform": "osx", "dist": "osx64" }, | |
"windows-latest": { "platform": "win", "dist": "win32,win64" } | |
} | |
- name: Build info | |
run: echo Build ${{ env.dist }} on nw-v${{ matrix.nwjs }} | |
- name: Build App | |
run: | | |
yarn | |
yarn gulp dist --platforms=${{ env.platform == 'win' && '"' || '' }}${{ env.dist }}${{ env.platform == 'win' && '"' || '' }} --nwVersion=${{ matrix.nwjs }} | |
- name: Upload artifacts | |
uses: actions/upload-artifact@master | |
with: | |
name: ${{ env.platform }}-${{ matrix.nwjs }} | |
path: build | |
release: | |
needs: build | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Context | |
if: startsWith(github.ref, 'refs/tags/v') | |
env: | |
GITHUB_CONTEXT: ${{ toJson(github) }} | |
run: echo "$GITHUB_CONTEXT" | |
- uses: actions/download-artifact@v4 | |
with: | |
path: artifacts | |
merge-multiple: true | |
- name: Display structure of downloaded files | |
run: ls -R artifacts | |
- uses: ncipollo/release-action@v1 | |
if: startsWith(github.ref, 'refs/tags/v') | |
with: | |
allowUpdates: true | |
name: ${{ github.ref_name }} | |
artifacts: "artifacts/*" |