Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix publish.yml #162

Merged
merged 1 commit into from
Jul 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 29 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,23 @@ jobs:
shell: pwsh
run: |-
cd nyalcf_cli
mkdir build
dart pub get
mkdir dist -p
dart compile exe bin/nyalcf_cli.dart -o dist/nyalcf_cli-windows-x64.exe
cd ..

- name: Move Build Files
shell: pwsh
run: |-
mkdir dist -p
mv nyalcf_gui/dist/* dist
mv nyalcf_cli/dist/* dist

- name: Upload Dist Artifact
uses: actions/upload-artifact@v4
with:
name: Windows Artifact(Dist)
path: nyalcf_gui/dist
path: dist

linux:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -94,15 +102,22 @@ jobs:
- name: Compile CLI
run: |-
cd nyalcf_cli
mkdir build -p
dart pub get
mkdir dist -p
dart compile exe bin/nyalcf_cli.dart -o dist/nyalcf_cli-linux-x64
cd ..
cd ..

- name: Move Build Files
run: |-
mkdir dist -p
mv nyalcf_gui/dist/* dist
mv nyalcf_cli/dist/* dist

- name: Upload Dist Artifact
uses: actions/upload-artifact@v4
with:
name: Linux Artifact(Dist)
path: nyalcf_gui/dist
path: dist

macos:
strategy:
Expand Down Expand Up @@ -143,15 +158,22 @@ jobs:
- name: Compile CLI
run: |-
cd nyalcf_cli
mkdir build -p
dart pub get
mkdir dist -p
dart compile exe bin/nyalcf_cli.dart -o dist/nyalcf_cli-macos-${{ matrix.os == 'macos-latest' && 'arm64' || matrix.os == 'macos-13' && 'x64' || matrix.os }}
cd ..

- name: Move Build Files
run: |-
mkdir dist -p
mv nyalcf_gui/dist/* dist
mv nyalcf_cli/dist/* dist

- name: Upload Dist Artifact
uses: actions/upload-artifact@v4
with:
name: MacOS Artifact (Dist ${{ matrix.os == 'macos-latest' && 'arm64' || matrix.os == 'macos-13' && 'x64' || matrix.os }})
path: nyalcf_gui/dist
path: dist

publish_releases:
name: publish
Expand Down