Skip to content

Show restriction reason and days remaining on announce screen (#593) #107

Show restriction reason and days remaining on announce screen (#593)

Show restriction reason and days remaining on announce screen (#593) #107

Workflow file for this run

# https://acraven.medium.com/a-nuget-package-workflow-using-github-actions-7da8c6557863
name: Create new release from pushed tag
on:
push:
tags:
- "*"
jobs:
release:
name: Release Built Artifacts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Set VERSION variable from tag (for tag pushes)
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
- name: Print VERSION variable for debugging
run: echo "$VERSION"
- name: Publish for Linux x64
run: dotnet publish -c Release -r linux-x64 --self-contained Refresh.GameServer /p:Version=${VERSION}
- name: Publish for Windows x64
run: dotnet publish -c Release -r win-x64 --self-contained Refresh.GameServer /p:Version=${VERSION}
- name: Download Refresh Website artifact
id: download-artifact
uses: dawidd6/action-download-artifact@v2
with:
github_token: ${{secrets.GITHUB_TOKEN}}
workflow: ng.yml
workflow_conclusion: success
name: "Refresh Website"
repo: LittleBigRefresh/refresh-web
branch: master
if_no_artifact_found: fail
path: "Refresh.GameServer/bin/Release/net8.0/linux-x64/publish/web"
- name: Copy artifact to windows build directory
run: cp -r "Refresh.GameServer/bin/Release/net8.0/linux-x64/publish/web" "Refresh.GameServer/bin/Release/net8.0/win-x64/publish/"
- name: Create zip files
run: |
cd Refresh.GameServer/bin/Release/net8.0/linux-x64/publish/
zip -r "../../../../../../Refresh_for_Linux_x64.zip" .
cd ../../win-x64/publish/
zip -r "../../../../../../Refresh_for_Windows_x64.zip" .
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
draft: true
files: |
*.zip