Skip to content

Commit

Permalink
ci: try adding pr build
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjozork committed Mar 31, 2024
1 parent c508a33 commit ca4ddf4
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 16 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/pr-title.yml

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: PR
on:
pull_request_target:
types:
- opened
- synchronize
- reopened
- ready_for_review

jobs:
title:
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v3.1.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build:
if: github.repository_owner == 'flybywiresim'
runs-on: windows-latest
env:
RELEASE_ZIP_NAME: fbw-simbridge.zip
BUILD_DIR_NAME: pr
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: set Node version
uses: actions/setup-node@v3
with:
node-version: 18
- name: Build Local API
run: |
npm install
npm run typecheck
npm run build:exec
- name: Build ZIP File
run: |
node .\scripts\fragment.js
mkdir .\${{env.BUILD_DIR_NAME}}
Compress-Archive -Path .\build\* .\${{env.BUILD_DIR_NAME }}\${{ env.RELEASE_ZIP_NAME }}
- name: Upload PR artifact
uses: actions/upload-artifact@v4
if: github.event.pull_request.auto_merge == false
with:
name: flybywire-external-simbridge
path: .\${{env.BUILD_DIR_NAME }}\${{ env.RELEASE_ZIP_NAME }}

0 comments on commit ca4ddf4

Please sign in to comment.