mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-10-26 11:08:40 +03:00
Merge pull request #901 from pulsar-edit/fix-Rolling-upload-tag-for-Linux-binaries
CI: Fix tag Linux binaries are uploaded to for Rolling
This commit is contained in:
commit
d1bb4c24a2
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
@ -31,6 +31,8 @@ jobs:
|
||||
fail-fast: false
|
||||
runs-on: ${{ matrix.os }}
|
||||
container: ${{ matrix.image }}
|
||||
outputs:
|
||||
timestamp: ${{ steps.linux-binary-version.outputs.timestamp }}
|
||||
|
||||
steps:
|
||||
- name: Install build dependencies - Linux
|
||||
@ -77,6 +79,13 @@ jobs:
|
||||
git submodule init
|
||||
git submodule update
|
||||
|
||||
- name: Set Timestamp for Binary Version - Linux
|
||||
id: linux-binary-version
|
||||
if: ${{ runner.os == 'Linux' }}
|
||||
# This output is currently only set for the sake of the Rolling binary upload script.
|
||||
# See the "test-and-upload-Linux" job below.
|
||||
run: echo "timestamp=`date -u +%Y%m%d%H`" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Check Pulsar Version
|
||||
if: ${{ runner.os != 'Windows' }}
|
||||
run: sed -i -e "s/[0-9]*-dev/`date -u +%Y%m%d%H`/g" package.json
|
||||
@ -258,6 +267,12 @@ jobs:
|
||||
mkdir -p ./tests/videos
|
||||
Xvfb -screen 0 1024x768x24+32 :99 & nohup ffmpeg -video_size 1024x768 -f x11grab -i :99.0 ./tests/videos/out.mpg & DISPLAY=:99 PLAYWRIGHT_JUNIT_OUTPUT_NAME=report.xml npx playwright test --reporter=junit,list
|
||||
|
||||
- name: Check Pulsar Version
|
||||
if: ${{ runner.os != 'Windows' }}
|
||||
run: sed -i -e "s/[0-9]*-dev/${TIMESTAMP}/g" package.json
|
||||
env:
|
||||
TIMESTAMP: ${{needs.build.outputs.timestamp}}
|
||||
|
||||
- name: Add binaries to Rolling Release Repo - Linux
|
||||
if: ${{ github.event_name == 'push' && runner.os == 'Linux' }}
|
||||
# We only want to upload rolling binaries if they are a commit to master
|
||||
|
Loading…
Reference in New Issue
Block a user