Skip to content

Commit

Permalink
🚧 remove old qodana action
Browse files Browse the repository at this point in the history
begin release action
  • Loading branch information
csc530 committed May 10, 2024
1 parent ce20471 commit d979970
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 19 deletions.
72 changes: 72 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@

# good ref:https://github.com/ruby/ruby-dev-builder/blob/b0bf59a17c17985d4692243d4689c273f6348fa5/.github/workflows/build.yml#L40
name: .NET

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

workflow_dispatch:
inputs:
version:
description: platform to publish
required: false
type: string
default: 'linux-x64'
options:
- win-x64
- win-x86
- win-arm64
- linux-x64
- linux-musl-x64
- linux-musl-arm64
- linux-arm
- linux-arm64
- linux-bionic-arm64
- osx-x64
- osx-arm64

jobs:
build:

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macOS-latest ]


steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore

- name: Create GitHub Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh


- name: Publish
if: github.event.inputs.version != ''

run: dotnet publish -c Release -r ${{ github.event.inputs.version }} --no-self-contained
working-directory: ./Resumer
- name: Upload Artifact
uses: actions/upload-artifact@v3

with:
name: Resumer
path: Resumer/bin/Release/net6.0/${{ github.event.inputs.version }}/publish/

- name: Publish GitHub Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release eedit ${{ }}
19 changes: 0 additions & 19 deletions .github/workflows/qodana_code_quality.yml

This file was deleted.

0 comments on commit d979970

Please sign in to comment.