Merge pull request #31 from GalaxyPay/dev #26
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: Publish & Release | |
on: | |
push: | |
branches: [main] | |
jobs: | |
webui: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
run_install: false | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: "pnpm" | |
cache-dependency-path: webui/pnpm-lock.yaml | |
- name: Build webui | |
run: | | |
cd webui | |
pnpm install | |
pnpm build | |
cd .. | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: webui | |
path: "publish/wwwroot" | |
retention-days: 1 | |
amd64-package: | |
runs-on: ubuntu-latest | |
needs: webui | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: "8.0.x" | |
- name: Publish FUNC | |
run: | | |
cd FUNC | |
dotnet publish -o ../publish | |
cd .. | |
- name: Download webui Artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: webui | |
path: "publish/wwwroot" | |
- name: Create Package | |
run: ./create-package.sh amd64 | |
- name: Upload amd64 Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: amd64-package | |
path: "Output/*.deb" | |
retention-days: 1 | |
arm64-package: | |
runs-on: ubuntu-latest | |
needs: webui | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: "8.0.x" | |
- name: Publish FUNC | |
run: | | |
cd FUNC | |
dotnet publish -o ../publish -r linux-arm64 | |
cd .. | |
- name: Download webui Artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: webui | |
path: "publish/wwwroot" | |
- name: Create Package | |
run: ./create-package.sh arm64 | |
- name: Upload arm64 Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: arm64-package | |
path: "Output/*.deb" | |
retention-days: 1 | |
windows-setup: | |
runs-on: windows-latest | |
needs: webui | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: "8.0.x" | |
- name: Publish FUNC | |
run: | | |
cd FUNC | |
dotnet publish -o ..\publish | |
cd .. | |
- name: Publish NodeService | |
run: | | |
cd NodeService | |
dotnet publish -o ..\publish\Services | |
cd .. | |
- name: Publish RetiService | |
run: | | |
cd RetiService | |
dotnet publish -o ..\publish\Services | |
cd .. | |
- name: Download webui Artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: webui | |
path: "publish/wwwroot" | |
- name: Create Setup | |
uses: Minionguyjpro/[email protected] | |
with: | |
path: ./FUNC.iss | |
- name: Upload win Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: win-setup | |
path: "Output" | |
retention-days: 1 | |
create-release: | |
runs-on: ubuntu-latest | |
needs: [amd64-package, arm64-package, windows-setup] | |
steps: | |
- name: Download amd64 Artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: amd64-package | |
path: "Output" | |
- name: Download arm64 Artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: arm64-package | |
path: "Output" | |
- name: Download win Artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: win-setup | |
path: "Output" | |
- name: Create Release | |
uses: ncipollo/release-action@v1 | |
with: | |
allowUpdates: true | |
tag: v2.0.6 | |
artifacts: "Output/*" |