Skip to content

Commit

Permalink
Initial commit 🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
lukis101 committed Jul 14, 2024
0 parents commit 7d59af4
Show file tree
Hide file tree
Showing 17 changed files with 9,653 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
53 changes: 53 additions & 0 deletions .github/workflows/dotnet-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: "Publish"

on:
push:
tags:
- "v*"
workflow_dispatch:

env:
PROJECT_PATH: VRPoleOverlay/VRPoleOverlay.csproj
PUBLISH_PATH: VRPoleOverlay/bin/Release/net8.0/win-x64/publish/
ZIP_FILENAME: "VRPoleOverlay-${{ github.ref_name }}.zip"

permissions:
contents: write

jobs:
deploy:
runs-on: windows-latest
steps:
- name: Initialize Actions
uses: actions/checkout@v2

- name: Initialize .Net
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x

- name: Restore Project
run: dotnet restore ${{ env.PROJECT_PATH }}

- name: Publish Project
run: dotnet publish ${{ env.PROJECT_PATH }} -c Release --no-restore

- run: Copy-Item "README.md" -Destination "${{ env.PUBLISH_PATH }}"

- run: Copy-Item "LICENSE.md" -Destination "${{ env.PUBLISH_PATH }}"

- name: Create Zip File
uses: thedoctor0/zip-release@09336613be18a8208dfa66bd57efafd9e2685657
with:
type: "zip"
directory: "${{ env.PUBLISH_PATH }}"
path: "."
filename: "../../../../../../${{ env.ZIP_FILENAME }}"
exclusions: '*.pdb'

- name: Make Release
uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5
with:
name: "VRPoleOverlay ${{ github.ref_name }}"
tag_name: ${{ github.ref_name }}
files: "${{ env.ZIP_FILENAME }}"
Loading

0 comments on commit 7d59af4

Please sign in to comment.