server: fix client issue with onClose event #12
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: Release | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
build-and-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup .NET Core SDK | |
uses: actions/setup-dotnet@v3.0.3 | |
with: | |
dotnet-version: 6.x | |
- name: Build TokenGetter Ubuntu | |
run: dotnet publish SpotifyBearerTokenGetter -c Release -r ubuntu.22.04-x64 -p:PublishSingleFile=true --self-contained true --output TelegramStatus/Publish/ubuntu.22.04-x64/Main | |
- name: Build Telegram Music Status Ubuntu | |
run: dotnet publish TelegramMusicStatus -c Release -r ubuntu.22.04-x64 -p:PublishSingleFile=true --self-contained true --output TelegramStatus/Publish/ubuntu.22.04-x64/Main/App | |
- name: Archive files ubuntu | |
run: | | |
cd TelegramStatus/Publish/ubuntu.22.04-x64 | |
zip -r ubuntu.22.04-x64.zip * | |
- name: Build TokenGetter Windows | |
run: dotnet publish SpotifyBearerTokenGetter -c Release -r win-x64 -p:PublishSingleFile=true --output TelegramStatus/Publish/win-x64/Main --self-contained false | |
- name: Build Telegram Music Status Windows | |
run: dotnet publish TelegramMusicStatus -c Release -r win-x64 -p:PublishSingleFile=true --output TelegramStatus/Publish/win-x64/Main/App --self-contained false | |
- name: Archive files windows | |
run: | | |
cd TelegramStatus/Publish/win-x64 | |
zip -r win-x64.zip * | |
- name: Create Release and Upload Assets | |
uses: softprops/action-gh-release@v1 | |
with: | |
release_name: Release | |
files: | | |
TelegramStatus/Publish/ubuntu.22.04-x64/ubuntu.22.04-x64.zip | |
TelegramStatus/Publish/win-x64/win-x64.zip | |
generate_release_notes: true | |
deploy: | |
needs: build-and-publish | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v1 | |
with: | |
registry: docker.io | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Build and Push Latest Docker Image | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
push: true | |
tags: docker.io/${{ secrets.DOCKER_USERNAME }}/telegrammusicstatus:latest | |
remove-old-artifacts: | |
needs: build-and-publish | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Remove old artifacts | |
uses: c-hive/gha-remove-artifacts@v1 | |
with: | |
age: '1 day' | |
skip-recent: 1 |