Deploy to by @id88 #4
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: MyWorkflows | ||
run-name: Deploy to ${{ inputs.deploy_target }} by @${{ github.actor }} | ||
on: | ||
push: | ||
branches: [main] | ||
paths-ignore: | ||
- "**.md" | ||
- "**.spec.js" | ||
- ".idea" | ||
- ".vscode" | ||
- ".dockerignore" | ||
- "Dockerfile" | ||
- ".gitignore" | ||
- ".github/**" | ||
- "!.github/workflows/build.yml" | ||
jobs: | ||
build-project: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [windows-latest] | ||
env: | ||
BASE_DIR: ${{ GITHUB_ACTION_PATH }} | ||
Check failure on line 27 in .github/workflows/build.yml GitHub Actions / MyWorkflowsInvalid workflow file
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
- name: Install linux dependencies | ||
# if: runner.os == 'Linux' | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
echo "The operating system on the runner is $env:RUNNER_OS." | ||
sudo apt-get update -y && sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev build-essential pkg-config | ||
- name: Setup Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: '1.20' | ||
- name: Setup Wails CLI v2.6.0 | ||
run: go install github.com/wailsapp/wails/v2/cmd/[email protected] | ||
- name: Checkout Wails | ||
run: wails doctor | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: Creating project with a template | ||
run: | | ||
cd .. | ||
wails init -n my-wails-project -t wails-vite-vue-ts-navie-pinia | ||
- name: Build Release Files | ||
run: | | ||
cd ../my-wails-project | ||
wails build | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: release_on_${{ matrix.os }} | ||
path: release/ | ||
retention-days: 5 |