Update Publish Release workflow

This commit is contained in:
JonnyWong16 2020-06-20 23:46:15 -07:00
commit bc1328040c
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -9,7 +9,7 @@ jobs:
runs-on: windows-latest runs-on: windows-latest
steps: steps:
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v2.1.0 uses: actions/checkout@v2
- name: Set Release Version - name: Set Release Version
id: get_version id: get_version
@ -28,13 +28,13 @@ jobs:
echo $GITHUB_SHA > version.txt echo $GITHUB_SHA > version.txt
- name: Set Up Python - name: Set Up Python
uses: actions/setup-python@v1.2.0 uses: actions/setup-python@v2
with: with:
python-version: 3.8 python-version: 3.8
- name: Cache Dependencies - name: Cache Dependencies
id: cache_dependencies id: cache_dependencies
uses: actions/cache@v1 uses: actions/cache@v2
with: with:
path: ~\AppData\Local\pip\Cache path: ~\AppData\Local\pip\Cache
key: ${{ runner.os }}-pip-${{ hashFiles('package/requirements-windows.txt') }} key: ${{ runner.os }}-pip-${{ hashFiles('package/requirements-windows.txt') }}
@ -58,7 +58,7 @@ jobs:
include-custom-plugins-path: package/nsis-plugins include-custom-plugins-path: package/nsis-plugins
- name: Upload Installer - name: Upload Installer
uses: actions/upload-artifact@v1 uses: actions/upload-artifact@v2
with: with:
name: Tautulli-windows-installer name: Tautulli-windows-installer
path: Tautulli-windows-${{ steps.get_version.outputs.RELEASE_VERSION }}.exe path: Tautulli-windows-${{ steps.get_version.outputs.RELEASE_VERSION }}.exe
@ -69,14 +69,14 @@ jobs:
with: with:
webhook: ${{ secrets.DISCORD_WEBHOOK }} webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: ${{ job.status }} status: ${{ job.status }}
job: Build Windows Installer title: Build Windows Installer
nofail: true nofail: true
build-macos: build-macos:
runs-on: macos-latest runs-on: macos-latest
steps: steps:
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v2.1.0 uses: actions/checkout@v2
- name: Set Release Version - name: Set Release Version
id: get_version id: get_version
@ -94,13 +94,13 @@ jobs:
echo $GITHUB_SHA > version.txt echo $GITHUB_SHA > version.txt
- name: Set Up Python - name: Set Up Python
uses: actions/setup-python@v1.2.0 uses: actions/setup-python@v2
with: with:
python-version: 3.8 python-version: 3.8
- name: Cache Dependencies - name: Cache Dependencies
id: cache_dependencies id: cache_dependencies
uses: actions/cache@v1 uses: actions/cache@v2
with: with:
path: ~/Library/Caches/pip path: ~/Library/Caches/pip
key: ${{ runner.os }}-pip-${{ hashFiles('package/requirements-macos.txt') }} key: ${{ runner.os }}-pip-${{ hashFiles('package/requirements-macos.txt') }}
@ -120,7 +120,7 @@ jobs:
sudo pkgbuild --install-location /Applications --version ${{ steps.get_version.outputs.VERSION }} --component ./dist/Tautulli.app --scripts ./package/macos-scripts Tautulli-macos-${{ steps.get_version.outputs.RELEASE_VERSION }}.pkg sudo pkgbuild --install-location /Applications --version ${{ steps.get_version.outputs.VERSION }} --component ./dist/Tautulli.app --scripts ./package/macos-scripts Tautulli-macos-${{ steps.get_version.outputs.RELEASE_VERSION }}.pkg
- name: Upload Installer - name: Upload Installer
uses: actions/upload-artifact@v1 uses: actions/upload-artifact@v2
with: with:
name: Tautulli-macos-installer name: Tautulli-macos-installer
path: Tautulli-macos-${{ steps.get_version.outputs.RELEASE_VERSION }}.pkg path: Tautulli-macos-${{ steps.get_version.outputs.RELEASE_VERSION }}.pkg
@ -131,7 +131,7 @@ jobs:
with: with:
webhook: ${{ secrets.DISCORD_WEBHOOK }} webhook: ${{ secrets.DISCORD_WEBHOOK }}
status: ${{ job.status }} status: ${{ job.status }}
job: Build MacOS Installer title: Build MacOS Installer
nofail: true nofail: true
release: release:
@ -143,7 +143,7 @@ jobs:
uses: technote-space/workflow-conclusion-action@v1 uses: technote-space/workflow-conclusion-action@v1
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v2.1.0 uses: actions/checkout@v2
- name: Set Release Version - name: Set Release Version
id: get_version id: get_version
@ -152,13 +152,13 @@ jobs:
- name: Download Windows Installer - name: Download Windows Installer
if: env.WORKFLOW_CONCLUSION == 'success' if: env.WORKFLOW_CONCLUSION == 'success'
uses: actions/download-artifact@v1 uses: actions/download-artifact@v2
with: with:
name: Tautulli-windows-installer name: Tautulli-windows-installer
- name: Download MacOS Installer - name: Download MacOS Installer
if: env.WORKFLOW_CONCLUSION == 'success' if: env.WORKFLOW_CONCLUSION == 'success'
uses: actions/download-artifact@v1 uses: actions/download-artifact@v2
with: with:
name: Tautulli-macos-installer name: Tautulli-macos-installer
@ -188,7 +188,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
upload_url: ${{ steps.create_release.outputs.upload_url }} upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: Tautulli-windows-installer/Tautulli-windows-${{ steps.get_version.outputs.RELEASE_VERSION }}.exe asset_path: ./Tautulli-windows-${{ steps.get_version.outputs.RELEASE_VERSION }}.exe
asset_name: Tautulli-windows-${{ steps.get_version.outputs.RELEASE_VERSION }}.exe asset_name: Tautulli-windows-${{ steps.get_version.outputs.RELEASE_VERSION }}.exe
asset_content_type: application/vnd.microsoft.portable-executable asset_content_type: application/vnd.microsoft.portable-executable
@ -199,6 +199,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
upload_url: ${{ steps.create_release.outputs.upload_url }} upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: Tautulli-macos-installer/Tautulli-macos-${{ steps.get_version.outputs.RELEASE_VERSION }}.pkg asset_path: ./Tautulli-macos-${{ steps.get_version.outputs.RELEASE_VERSION }}.pkg
asset_name: Tautulli-macos-${{ steps.get_version.outputs.RELEASE_VERSION }}.pkg asset_name: Tautulli-macos-${{ steps.get_version.outputs.RELEASE_VERSION }}.pkg
asset_content_type: application/vnd.apple.installer+xml asset_content_type: application/vnd.apple.installer+xml