server

Clone or download

Update release.yml

Modified Files

name: Release
name: Release
on:
on:
workflow_run:
workflow_run:
workflows: ["Build Windows"]
workflows: ["Build"]
types:
types:
- completed
- completed
jobs:
jobs:
build:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-20.04
steps:
steps:
- name: Download VERSION
- name: Download VERSION
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v2
with:
with:
workflow: init.yml
workflow: init.yml
name: version
name: version
- name: Add Version to environment
- name: Add Version to environment
run: |
run: |
echo "VERSION=$(<version.txt)" >> $GITHUB_ENV
echo "VERSION=$(<version.txt)" >> $GITHUB_ENV
- name: Download windows exe
- name: Download windows exe
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v2
with:
with:
workflow: windows.yml
workflow: windows.yml
name: windows-exe
name: windows-exe
path: target/install
path: target/install
- name: Download linux deb
- name: Download linux deb
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v2
with:
with:
workflow: linux.yml
workflow: linux.yml
name: linux-deb
name: linux-deb
path: target/install
path: target/install
- name: Download linux zip
- name: Download linux zip
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v2
with:
with:
workflow: linux.yml
workflow: linux.yml
name: linux-zip
name: linux-zip
path: target/install
path: target/install
- name: Download MacOS dmg
- name: Download MacOS dmg
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@v2
with:
with:
workflow: macos.yml
workflow: macos.yml
name: macos-dmg
name: macos-dmg
path: target/install
path: target/install
- name: Delete old release if exists
- name: Delete old release if exists
uses: dev-drprasad/delete-tag-and-release@v0.2.0
uses: dev-drprasad/delete-tag-and-release@v0.2.0
continue-on-error: true
continue-on-error: true
with:
with:
delete_release: true
delete_release: true
tag_name: ${{ env.VERSION }}
tag_name: ${{ env.VERSION }}
env:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release nightly build
- name: Release nightly build
uses: ncipollo/release-action@v1.8.6
uses: ncipollo/release-action@v1.8.6
with:
with:
allowUpdates: true
allowUpdates: true
name: Stream-Pi-Server ${{ env.VERSION }}
name: Stream-Pi-Server ${{ env.VERSION }}
artifacts: target/install/*
artifacts: target/install/*
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ env.VERSION }}
tag: ${{ env.VERSION }}