Skip to content

Commit

Permalink
github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashuaidehao committed Jun 16, 2024
1 parent 1610b84 commit 846f624
Showing 1 changed file with 89 additions and 0 deletions.
89 changes: 89 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
name: Release

on:
workflow_dispatch:

env:
DOTNET_VERSION: 7.0.x
NODE_VERSION: 20.x

jobs:


build:
name: Release/windows
# if: startsWith(github.ref, 'refs/heads/release/')
runs-on: windows-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{env.DOTNET_VERSION}}

- name: Install dependencies
run: dotnet restore neo3-gui/neo3-gui.sln

- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

- run: cd neo3-gui/neo3-gui/ClientApp/
- run: npm install

# - name: Get Cache Files (osx-x64)
# uses: actions/cache@v3
# with:
# path: /tmp/dist/*
# key: osx-x64

# - name: Get Cache Files (osx-arm64)
# uses: actions/cache@v3
# with:
# path: /tmp/dist/*
# key: osx-arm64

# - name: Get Cache Files (linux-x64)
# uses: actions/cache@v3
# with:
# path: /tmp/dist/*
# key: linux-x64

# - name: Get Cache Files (linux-arm64)
# uses: actions/cache@v3
# with:
# path: /tmp/dist/*
# key: linux-arm64

# - name: Get Cache Files (linux-musl-arm64)
# uses: actions/cache@v3
# with:
# path: /tmp/dist/*
# key: linux-musl-arm64

# - name: Get Cache Files (win-x64)
# uses: actions/cache@v3
# with:
# path: /tmp/dist/*
# key: win-x64

# - name: Get Cache Files (win-arm64)
# uses: actions/cache@v3
# with:
# path: /tmp/dist/*
# key: win-arm64

# - name: Create Release
# uses: marvinpinto/action-automatic-releases@latest
# with:
# repo_token: "${{ secrets.GITHUB_TOKEN }}"
# prerelease: ${{ steps.nbgv.outputs.PrereleaseVersion != '' }}
# title: ${{ steps.nbgv.outputs.NuGetPackageVersion }}
# automatic_release_tag: ${{ steps.nbgv.outputs.NuGetPackageVersion }}
# files: |
# /tmp/dist/*

0 comments on commit 846f624

Please sign in to comment.